Skip to content

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

Description

@paulido

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions