Skip to content

Instantly share code, notes, and snippets.

@adrienjoly
Last active April 24, 2025 14:50
Show Gist options
  • Save adrienjoly/9287328864cb00f15a21ae2f70e4bf9a to your computer and use it in GitHub Desktop.
Save adrienjoly/9287328864cb00f15a21ae2f70e4bf9a to your computer and use it in GitHub Desktop.
Script to decode a JWT token locally, using Node.js
node -p 'process.env.TOKEN.split(".").map(part => Buffer.from(part, "base64").toString())'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment