Created
April 10, 2022 02:42
-
-
Save somidad/cdb9c0af3dadd2193fe9c3a70e4f3301 to your computer and use it in GitHub Desktop.
Decode JWT (without verification)
This file contains 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 [header, payload, signature] = jwt.split('.'); | |
const buffer = Buffer.from(payload, 'base64'); | |
const decoded = JSON.parse(buffer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment