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
@Klerith
Klerith / parse-jwt.js
Created March 15, 2018 15:07
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));
};