HMAC

node v10.24.1
version: master
endpointsharetweet
const jwt = require('jsonwebtoken') const token = jwt.sign({ user: 'York' }, "IAmSecretKey")
const decoded = jwt.verify(token, 'IAmSecretKey') console.log(decoded.user)
Loading…

no comments

    sign in to comment