“JSON Web Token (JWT) establecido TIEMPO EN NODO JS” Código de respuesta

JSON Web Token (JWT) establecido TIEMPO EN NODO JS

 var token = jwt.sign({email_id:'[email protected]'}, "Stack", {
        expiresIn: "10h" // it will be expired after 10 hours
        //expiresIn: "20d" // it will be expired after 20 days
        //expiresIn: 120 // it will be expired after 120ms
        //expiresIn: "120s" // it will be expired after 120s
 });
Jaimin Patel

Cómo establecer el tiempo de expirar de JWT Token en el nodo JS

var token = jwt.sign({email_id:'[email protected]'}, "Stack", {

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

                         });
Fine Fly

Respuestas similares a “JSON Web Token (JWT) establecido TIEMPO EN NODO JS”

Preguntas similares a “JSON Web Token (JWT) establecido TIEMPO EN NODO JS”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código