@abtnode/auth 1.16.53-beta-20251013-075536-64fcb94b → 1.16.53-beta-20251014-110009-8220e324
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/passkey.js +2 -4
- package/locales/en.js +19 -21
- package/locales/i18n.json +1742 -0
- package/package.json +9 -9
- package/locales/i18n.db +0 -0
package/lib/passkey.js
CHANGED
|
@@ -181,7 +181,7 @@ function createPasskeyHandlers(node, mode, createToken) {
|
|
|
181
181
|
const { purpose, action } = req.query;
|
|
182
182
|
if (!PASSKEY_ACTIONS[action]) {
|
|
183
183
|
return res.status(400).send({
|
|
184
|
-
error:
|
|
184
|
+
error: 'Invalid action requested. Please select a valid passkey action instead of this action.',
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
|
|
@@ -436,9 +436,7 @@ function createPasskeyHandlers(node, mode, createToken) {
|
|
|
436
436
|
|
|
437
437
|
const handleAuthRequest = async (req, res) => {
|
|
438
438
|
if (!PASSKEY_ACTIONS[req.query.action]) {
|
|
439
|
-
return res
|
|
440
|
-
.status(400)
|
|
441
|
-
.send({ error: `The requested action "${req.query.action}" is not valid for passkey authentication.` });
|
|
439
|
+
return res.status(400).send({ error: 'The requested action is not valid for passkey authentication.' });
|
|
442
440
|
}
|
|
443
441
|
|
|
444
442
|
let expectedRoles = [ROLES.OWNER, ROLES.ADMIN, ROLES.MEMBER];
|
package/locales/en.js
CHANGED
|
@@ -13,31 +13,30 @@ module.exports = {
|
|
|
13
13
|
receiveEmailKyc: 'Sign to claim email verification NFT',
|
|
14
14
|
requestPhoneKyc: 'Provide phone verification NFT',
|
|
15
15
|
receivePhoneKyc: 'Sign to claim phone verification NFT',
|
|
16
|
-
actionForbidden:
|
|
17
|
-
notInitialized:
|
|
18
|
-
appNotInitialized:
|
|
16
|
+
actionForbidden: "You don't have permission for this action",
|
|
17
|
+
notInitialized: "This server isn't set up yet. Login is unavailable.",
|
|
18
|
+
appNotInitialized: "This application isn't set up yet",
|
|
19
19
|
alreadyInitiated: 'This server already has an owner',
|
|
20
|
-
notAllowed:
|
|
20
|
+
notAllowed: "You don't have access to this server",
|
|
21
21
|
notAllowedAppUser: 'Your access to this app has been revoked',
|
|
22
22
|
notInvited: 'This app is invite-only. Please request an invitation.',
|
|
23
23
|
notAppOwner: 'Only the app owner can access this',
|
|
24
|
-
notSupported:
|
|
25
|
-
notEnabled:
|
|
24
|
+
notSupported: "This application isn't supported on this server",
|
|
25
|
+
notEnabled: "This feature isn't enabled",
|
|
26
26
|
missingPassport: 'Passport required',
|
|
27
27
|
missingEmailKyc: 'Email verification NFT required',
|
|
28
28
|
noKycRequired: 'Email verification not required or already complete',
|
|
29
29
|
emailAlreadyUsed: 'This email is already in use',
|
|
30
|
-
emailMismatch:
|
|
31
|
-
emailBlocked:
|
|
30
|
+
emailMismatch: "Email doesn't match your verification NFT",
|
|
31
|
+
emailBlocked: "This email domain isn't allowed",
|
|
32
32
|
missingPhoneKyc: 'Phone verification NFT required',
|
|
33
33
|
phoneAlreadyUsed: 'This phone number is already in use',
|
|
34
|
-
phoneMismatch:
|
|
34
|
+
phoneMismatch: "Phone number doesn't match your verification NFT",
|
|
35
35
|
missingBlockletCredentialClaim: 'Blocklet credential required',
|
|
36
36
|
missingChallenge: 'Credential is missing a valid challenge',
|
|
37
37
|
invalidCredentialHolder: 'Credential holder is invalid',
|
|
38
38
|
invalidCredentialProof: 'Credential signature is invalid',
|
|
39
|
-
notOwner:
|
|
40
|
-
'This passport belongs to a different account. Use the wallet that owns this passport.',
|
|
39
|
+
notOwner: 'This passport belongs to a different account. Use the wallet that owns this passport.',
|
|
41
40
|
userMismatch: 'Account mismatch. Use your connected wallet to continue.',
|
|
42
41
|
lowVersion: 'Your wallet version is outdated. Please update to the latest version.',
|
|
43
42
|
unKnownStatus: 'Unknown status',
|
|
@@ -46,9 +45,9 @@ module.exports = {
|
|
|
46
45
|
passportNotFound: 'Passport not found',
|
|
47
46
|
passportExpired: 'Your passport has expired',
|
|
48
47
|
passportRevoked: 'Your passport has been revoked',
|
|
49
|
-
noPassportFound:
|
|
48
|
+
noPassportFound: "You don't have a valid passport for this blocklet",
|
|
50
49
|
userNotFound: 'User not found',
|
|
51
|
-
notAuthorized:
|
|
50
|
+
notAuthorized: "You don't have permission for this operation",
|
|
52
51
|
invalidParams: 'Please check your information and try again',
|
|
53
52
|
missingKeyPair: 'App key pair required',
|
|
54
53
|
missingBlockletUrl: 'Blocklet URL required',
|
|
@@ -65,7 +64,7 @@ module.exports = {
|
|
|
65
64
|
invalidNftHolder: 'NFT holder is invalid',
|
|
66
65
|
invalidNftProof: 'NFT signature is invalid',
|
|
67
66
|
invalidNftIssuer: 'NFT issuer is invalid',
|
|
68
|
-
invalidNftParent:
|
|
67
|
+
invalidNftParent: "NFT collection doesn't match",
|
|
69
68
|
tagNotMatch: 'This NFT belongs to a different server',
|
|
70
69
|
requestBlockletSpaceNFT: 'Blocklet Space NFT required',
|
|
71
70
|
blockletSpaceNftIdRequired: 'Blocklet Space NFT ID is required',
|
|
@@ -74,19 +73,18 @@ module.exports = {
|
|
|
74
73
|
nftAlreadyExpired: 'This NFT has expired',
|
|
75
74
|
nftAlreadyUsed: 'This NFT is already linked to another user',
|
|
76
75
|
missingNftClaim: 'Ownership NFT required',
|
|
77
|
-
noNft:
|
|
76
|
+
noNft: "This server isn't configured to accept ownership NFTs",
|
|
78
77
|
noLauncherDid: 'Launcher DID not found',
|
|
79
78
|
noNftDid: 'NFT DID not found',
|
|
80
79
|
noChainHost: 'Chain host not found',
|
|
81
80
|
alreadyTransferred: 'This server already belongs to {owner}',
|
|
82
|
-
delegateTransferOwnerNFT:
|
|
83
|
-
|
|
84
|
-
notAllowedTransferToSelf: 'You can\'t transfer the server to yourself',
|
|
81
|
+
delegateTransferOwnerNFT: 'Sign to authorize the server to transfer your ownership NFT when the new owner claims it.',
|
|
82
|
+
notAllowedTransferToSelf: "You can't transfer the server to yourself",
|
|
85
83
|
tagRequired: 'Tag is required',
|
|
86
84
|
appIsInProgress: 'This application is still processing. Please wait.',
|
|
87
85
|
cannotImportFromDidSpace: 'No importable data found in DID Spaces ({spaceName})',
|
|
88
86
|
destroyMyself: 'Confirm deletion of your personal data. This action cannot be undone.',
|
|
89
|
-
userNotExist:
|
|
90
|
-
notAllowedToDelete:
|
|
91
|
-
notAllowedToDeleteOwner:
|
|
87
|
+
userNotExist: "User {did} doesn't exist",
|
|
88
|
+
notAllowedToDelete: "You can't delete user {did}",
|
|
89
|
+
notAllowedToDeleteOwner: "You can't delete the application owner",
|
|
92
90
|
};
|