@alien_org/auth-client 0.1.0 → 0.1.2
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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
|
};
|