Learnlog

Learnlog

1151 bookmarks
Custom sorting
Create and Verify JWTs with Node
Create and Verify JWTs with Node
const jwt = require('njwt') const claims = { iss: 'fun-with-jwts', sub: 'AzureDiamond' } const token = jwt.create(claims, 'top-secret-phrase') token.setExpiration(new Date().getTime() + 60*1000) res.send(token.compact())
·developer.okta.com·
Create and Verify JWTs with Node