Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Last active September 7, 2021 01:17
Show Gist options
  • Save MeetMartin/72d609b66ea90039da82366d707e254a to your computer and use it in GitHub Desktop.
Save MeetMartin/72d609b66ea90039da82366d707e254a to your computer and use it in GitHub Desktop.
import jwt from 'jsonwebtoken';
const data = { some: 'json' };
const key = 'MuchSecretVerySecureSoSafe';
jwt.sign(data, key);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment