fix expire token
This commit is contained in:
parent
fb3dd54518
commit
4d081fc47a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue