Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
how to sign a jwt token in js that doesn't expire
moonwave99
Programming language:
Javascript
2021-07-27 06:58:38
0
Q:
how to sign a jwt token in js that doesn't expire
Randall Stewart
Code:
Javascript
2021-05-17 21:01:18
var token = jwt.sign({email:'
[email protected]
',role:'User'}, "Secret", {});
1
Tags
how
sign
Related
jwt authentication node js
generate bearer token
How to send JSON Web Token (JWT Token) as header with Postman and golang
aws amplify get JWT TOKEN
how to set time with jwt token in node js
how to set expire time of jwt token in node js
extract payload of expired jwt token in js
jwt refresh token
New to Communities?
Join the community