Skip to content

Instantly share code, notes, and snippets.

View wedburst's full-sized avatar
:octocat:
Focusing

Jhon Abou wedburst

:octocat:
Focusing
  • Indra | Rimac
  • Lima, Perú
View GitHub Profile
@wedburst
wedburst / parse-jwt.js
Created September 29, 2023 04:16 — forked from Klerith/parse-jwt.js
Parse - JWT - Obtener Payload y fecha de creación y expiración
function parseJwt (token) {
var base64Url = token.split('.')[1];
var base64 = base64Url.replace('-', '+').replace('_', '/');
return JSON.parse(window.atob(base64));
};