@abtnode/auth 1.17.4-beta-20251201-225048-b1682a09 → 1.17.4-beta-20251202-122551-267b614d

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.
Files changed (2) hide show
  1. package/lib/passkey.js +7 -5
  2. package/package.json +8 -8
package/lib/passkey.js CHANGED
@@ -864,11 +864,13 @@ function createPasskeyHandlers(node, mode, createToken) {
864
864
 
865
865
  logger.info('passkey.auth.result', { action: passkeySession.data.action, teamDid, userDid: user.did });
866
866
 
867
- const accessWallet = getAccessWallet({
868
- blockletAppDid: findMemberSite?.appId || blocklet.appDid || blocklet.meta.did,
869
- serverSecretKey: info.sk,
870
- });
871
- result.csrfToken = await sign(accessWallet.secretKey, result.sessionToken);
867
+ if (mode === 'service') {
868
+ const accessWallet = getAccessWallet({
869
+ blockletAppDid: findMemberSite?.appId || blocklet.appDid || blocklet.meta.did,
870
+ serverSecretKey: info.sk,
871
+ });
872
+ result.csrfToken = await sign(accessWallet.secretKey, result.sessionToken);
873
+ }
872
874
 
873
875
  return res.send(result);
874
876
  } catch (error) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.4-beta-20251201-225048-b1682a09",
6
+ "version": "1.17.4-beta-20251202-122551-267b614d",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,9 +18,9 @@
18
18
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.17.4-beta-20251201-225048-b1682a09",
22
- "@abtnode/logger": "1.17.4-beta-20251201-225048-b1682a09",
23
- "@abtnode/util": "1.17.4-beta-20251201-225048-b1682a09",
21
+ "@abtnode/constant": "1.17.4-beta-20251202-122551-267b614d",
22
+ "@abtnode/logger": "1.17.4-beta-20251202-122551-267b614d",
23
+ "@abtnode/util": "1.17.4-beta-20251202-122551-267b614d",
24
24
  "@arcblock/did": "^1.27.12",
25
25
  "@arcblock/did-connect-js": "^1.27.12",
26
26
  "@arcblock/did-ext": "^1.27.12",
@@ -29,10 +29,10 @@
29
29
  "@arcblock/nft-display": "^3.2.11",
30
30
  "@arcblock/validator": "^1.27.12",
31
31
  "@arcblock/vc": "^1.27.12",
32
- "@blocklet/constant": "1.17.4-beta-20251201-225048-b1682a09",
32
+ "@blocklet/constant": "1.17.4-beta-20251202-122551-267b614d",
33
33
  "@blocklet/error": "^0.3.3",
34
- "@blocklet/meta": "1.17.4-beta-20251201-225048-b1682a09",
35
- "@blocklet/sdk": "1.17.4-beta-20251201-225048-b1682a09",
34
+ "@blocklet/meta": "1.17.4-beta-20251202-122551-267b614d",
35
+ "@blocklet/sdk": "1.17.4-beta-20251202-122551-267b614d",
36
36
  "@ocap/client": "^1.27.12",
37
37
  "@ocap/mcrypto": "^1.27.12",
38
38
  "@ocap/util": "^1.27.12",
@@ -55,5 +55,5 @@
55
55
  "devDependencies": {
56
56
  "axios-mock-adapter": "^2.1.0"
57
57
  },
58
- "gitHead": "150c52d552b8b2d8c3a5bae57818aabf90dfd115"
58
+ "gitHead": "58a5f7d49ccce973fdb214337aee262435704ec5"
59
59
  }