Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to set expire time of jwt token in node js

var token = jwt.sign({email_id:'123@gmail.com'}, "Stack", {

                        expiresIn: '24h' // expires in 24 hours

                         });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #expire #time #jwt #token #node #js
ADD COMMENT
Topic
Name
5+2 =