@alien_org/auth-client 0.0.7-beta → 0.1.1
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/README.md +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @alien_org/auth-client
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@alien_org/auth-client)
|
|
4
|
+
|
|
3
5
|
Core authentication utilities for the Alien Miniapp SDK. This package provides tools for verifying JWT tokens issued by the Alien SSO.
|
|
4
6
|
|
|
5
7
|
Use it in your miniapp backend to verify tokens sent by miniapp.
|
package/dist/index.cjs
CHANGED
|
@@ -1231,7 +1231,7 @@ var AuthClient = class {
|
|
|
1231
1231
|
this.jwks = jwks;
|
|
1232
1232
|
}
|
|
1233
1233
|
async verifyToken(accessToken) {
|
|
1234
|
-
const { payload } = await jwtVerify(accessToken, this.jwks, { algorithms: ["RS256"] });
|
|
1234
|
+
const { payload } = await jwtVerify(accessToken, this.jwks, { algorithms: ["RS256", "EdDSA"] });
|
|
1235
1235
|
return TokenInfoSchema.parse(payload);
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1231,7 +1231,7 @@ var AuthClient = class {
|
|
|
1231
1231
|
this.jwks = jwks;
|
|
1232
1232
|
}
|
|
1233
1233
|
async verifyToken(accessToken) {
|
|
1234
|
-
const { payload } = await jwtVerify(accessToken, this.jwks, { algorithms: ["RS256"] });
|
|
1234
|
+
const { payload } = await jwtVerify(accessToken, this.jwks, { algorithms: ["RS256", "EdDSA"] });
|
|
1235
1235
|
return TokenInfoSchema.parse(payload);
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|