You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// no signing key found in the JWKS, this might mean that the developer rotated the JWT signing key too fast without waiting for all caches to be purged
3115
-
// in this case, validate the JWT directly with the Auth server
3098
+
// Verify the signature
3099
+
constisValid=awaitcrypto.subtle.verify(
3100
+
algorithm,
3101
+
publicKey,
3102
+
signature,
3103
+
stringToUint8Array(`${rawHeader}.${rawPayload}`)
3104
+
)
3116
3105
3117
-
const{ error }=awaitthis.getUser(token)
3118
-
if(error){
3119
-
throwerror
3120
-
}
3121
-
// getUser succeeds so the claims in the JWT can be trusted
0 commit comments