Skip to content

Instantly share code, notes, and snippets.

@hardboiled
Last active October 13, 2021 14:28
Show Gist options
  • Save hardboiled/e8c2bba7ccf30f6b21df803705bd68bf to your computer and use it in GitHub Desktop.
Save hardboiled/e8c2bba7ccf30f6b21df803705bd68bf to your computer and use it in GitHub Desktop.
> npm i -g jwt-decode
> JWT=<your_token> NODE_PATH=$(npm get prefix)/lib/node_modules node
> require('jwt-decode')(process.env.JWT)
// claims will print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment