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