We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b44c2 commit e68dcc2Copy full SHA for e68dcc2
src/jwt-verification.ts
@@ -61,7 +61,8 @@ export async function waitForJwksReady(): Promise<void> {
61
try {
62
// Try a dummy verification with an invalid token
63
// We only care that JWKS fetch succeeds, not that the token is valid
64
- await verifyJwt('invalid.fake.token')
+ const invalidJWT = 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.invalid_signature'
65
+ await verifyJwt(invalidJWT)
66
} catch (err: any) {
67
// If we get a JWT verification error, JWKS successfully fetched and processed the token
68
// This means JWKS is working! (Even though token was rejected - that's expected)
0 commit comments