Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jsonwebtoken error with react js

Run npm install jwt-decode or yarn add jwt-decode to install the library.
import jwt_decode from "jwt-decode";
 
var token = "eyJ0eXAiO.../// jwt token";
var decoded = jwt_decode(token);
 
console.log(decoded);
 
PREVIOUS NEXT
Tagged: #jsonwebtoken #error #react #js
ADD COMMENT
Topic
Name
5+1 =