Created
August 22, 2017 14:38
-
-
Save rafaelsq/1c3756257aa10fac7d059c3851c76d4a to your computer and use it in GitHub Desktop.
Parse JWT base64 string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const parseJwt = token => JSON.parse(window.atob(token.split('.')[1].replace('-', '+').replace('_', '/'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment