json web token npm global
$ npm install jsonwebtoken
json web token npm global
$ npm install jsonwebtoken
how to sign a jwt token in js that doesn't expire
var token = jwt.sign({email:'[email protected]',role:'User'}, "Secret", {});
jwt expiresin
var token = jwt.sign({email_id:'[email protected]'}, "Stack", {
expiresIn: '24h' // expires in 24 hours
});
npm package for jwt
$ npm install jwt-simple
jsonwebtoken
jwt.sign({ exp: Math.floor(Date.now() / 1000) + (60 * 60), data: 'foobar'}, 'secret');
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us