Skip to content

Commit e68dcc2

Browse files
Update src/jwt-verification.ts
Co-authored-by: Ferruh <[email protected]>
1 parent 11b44c2 commit e68dcc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jwt-verification.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export async function waitForJwksReady(): Promise<void> {
6161
try {
6262
// Try a dummy verification with an invalid token
6363
// We only care that JWKS fetch succeeds, not that the token is valid
64-
await verifyJwt('invalid.fake.token')
64+
const invalidJWT = 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.invalid_signature'
65+
await verifyJwt(invalidJWT)
6566
} catch (err: any) {
6667
// If we get a JWT verification error, JWKS successfully fetched and processed the token
6768
// This means JWKS is working! (Even though token was rejected - that's expected)

0 commit comments

Comments
 (0)