made changes in token

master
varun 3 years ago
parent e5b9b620bf
commit 0bdd1ad280

@ -299,7 +299,7 @@ fastify.get("/api/reset_token/:customerId", {
userId: get_user._id, userId: get_user._id,
roles: get_user.profile.role, roles: get_user.profile.role,
}, },
{ expiresIn: "12h" } { expiresIn: "15d" }
); );
reply.send({ access_token: token, customerId: get_user.customerId }); reply.send({ access_token: token, customerId: get_user.customerId });
} catch (err) { } catch (err) {
@ -316,6 +316,8 @@ fastify.get("/api/reset_token/:customerId", {
}, },
}); });
fastify.get('/testtemp', (req, reply) => { fastify.get('/testtemp', (req, reply) => {
reply.view('layouts/main', {}); reply.view('layouts/main', {});
}); });

Loading…
Cancel
Save