-
How can I do something like this: try {
const { payload } = await jwtVerify(token, EMAIL_VERIFICATION_JWT_UINT);
} catch (error) {
if (error instanceof JWSSignatureVerificationFailed) {
console.warn(
'email verification JWT verification failed. Token: %s',
token
);
} else {
...
}
} For now, I can't import
I'm using I can also check for the error code, but I don't think that's a good, because the code is a string and it might change over time. |
Beta Was this translation helpful? Give feedback.
Answered by
panva
Mar 23, 2023
Replies: 1 comment 4 replies
-
Why don't you import just like the project documentation says jose import should be done? |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ahmafi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why don't you import just like the project documentation says jose import should be done?