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"
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"