react-native-pure-jwt icon indicating copy to clipboard operation
react-native-pure-jwt copied to clipboard

cannot read property 'decode' of null : react-native-pure-jwt

Open paulido opened this issue 1 year ago • 2 comments

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"

paulido avatar Aug 19 '23 18:08 paulido

same error, any solution?

atesarova avatar Nov 06 '23 13:11 atesarova

The library is probably not linked correctly.

zaguiini avatar May 08 '24 16:05 zaguiini