Jose 3.x version of the Jose 2.x verify feature #195
Unanswered
joelpowers
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you tried parsing the object using
|
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
-
// working - 2.x typescript
import * as jose from 'jose';
...
this.verifyKey(jwt, key);
Where jwt is a string. key is an object something like:
{
alg: 'ES256',
created_at: 1560466143,
crv: 'P-256',
expired_at: null,
kid: 'snip snip snip',
kty: 'EC',
use: 'sig',
x: 'snip snip snip',
y: 'snip snip snip-snip snip snip',
}
What is the equivalent in 3.x? I've looked at jwtVerify but the 2nd paramber seems to be something else and there are verifyOptions, not sure what to use there.
Thanks in advance!!
Beta Was this translation helpful? Give feedback.
All reactions