Open eb-73 opened 1 year ago
The method was removed silently from the package exports. I'm wondering if this is an error.
@eb-73 Try degrading to 8.5.1
.
Although I'm not sure if it's recommended
Some additional context to my previous comment:
// Works
import { decode } from 'jsonwebtoken';
// Doesn't work
import * as jwt from 'jsonwebtoken';
jwt.decode // undefined
I have problem with decode method in react library when call decode method. I get this error in console: TypeError, can not read property of undefined