Answers for "decode jwt token nodejs"

0

js jwt decode

import jwt_decode from "jwt-decode";
var token = "eyJ0eXAiO...";
var decoded = jwt_decode(token);
console.log(decoded);

/* prints: * { foo: "bar", *   exp: 1393286893, *   iat: 1393268893  } */
Posted by: Guest on January-09-2021
0

decode jwt token nodejs

var ca = "your.jwt.token";
var base64Url = ca.split('.')[1];
var decodedValue = JSON.parse(window.atob(base64Url));
Posted by: Guest on April-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language