Closed
Description
After upgrading jsonwebtoken
to v9, React-Native app written in Typescript can't verify the JWT and throws an error
[TypeError: right operand of 'instanceof' is not an object]
import jwt from 'jsonwebtoken'
...
try {
return !!jwt.verify(token, publicKey)
} catch (error) {
console.log(error)
return false
}
But in a JavaScript file run by node
it works fine!
Metadata
Metadata
Assignees
Labels
No labels