react-native-pure-jwt
react-native-pure-jwt copied to clipboard
cannot read property 'decode' of null : react-native-pure-jwt
In my react native project the example from github does not works
` import {decode} from "react-native-pure-jwt";
decode( "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJKb2UifQ.ipevRNuRP6HflG8cFKnmUPtypruRC4fb1DWtoLL62SY", // the token "secret", // the secret { skipValidation: true // to skip signature and exp verification } ) .then(console.log) // already an object. read below, exp key note .catch(console.error);
` I got the following error : "cannot read property 'decode' of null"
same error, any solution?
The library is probably not linked correctly.