From 4d081fc47a22c7819597bd62fd690e811bc37093 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 21 Nov 2024 15:58:49 +0700 Subject: [PATCH] fix expire token --- src/controllers/ProfileController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 8a970d22..314ff314 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -1885,7 +1885,7 @@ export class ProfileController extends Controller { } ) { const jwt = require('jsonwebtoken'); - const token = jwt.sign({email_id: body.email, profileId: body.profileId}, process.env.AUTH_ACCOUNT_SECRET, {expiresIn: '5m'}); + const token = jwt.sign({email_id: body.email, profileId: body.profileId}, process.env.AUTH_ACCOUNT_SECRET, {expiresIn: '15m'}); // console.log("[token]",token); const link = process.env.URL + "/verifyemail/" + token; // console.log("[link]",link);