Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created September 6, 2021 01:38
Show Gist options
  • Select an option

  • Save MeetMartin/c85692904970302171293c1136e39b61 to your computer and use it in GitHub Desktop.

Select an option

Save MeetMartin/c85692904970302171293c1136e39b61 to your computer and use it in GitHub Desktop.
import jwt from 'jsonwebtoken';
const key = 'MuchSecretVerySecureSoSafe';
const theSecret = jwt.verify(token, key); // returns the original encrypted JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment