Replies: 1 comment 1 reply
-
Not sure how to assist. The audience is different than the one you ask it to be... Also your jsonwebtoken code did not check the audience at all... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I need to use this package instead of
jsonwebtoken
because it has support for Cloudflare Workers 💯I am struggling to understand how it all works though. Here's my previous code:
How would I swap out the functions used here to one's with jose instead? I think what I need is
jose.createLocalJWKSet
. I've tried this:But I get:
Unhandled Promise Rejection: JWTClaimValidationFailed: unexpected "aud" claim value
According to AWS, this should be the correct issuer/audience:
Beta Was this translation helpful? Give feedback.
All reactions