1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

Merge pull request #54 from sasjs/token-expiry-updated

fix: updated token expiry times
This commit is contained in:
Muhammad Saad
2022-02-11 21:05:31 +04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -3,5 +3,5 @@ import { InfoJWT } from '../types'
export const generateAccessToken = (data: InfoJWT) =>
jwt.sign(data, process.env.ACCESS_TOKEN_SECRET as string, {
expiresIn: '1h'
expiresIn: '1day'
})

View File

@@ -3,5 +3,5 @@ import { InfoJWT } from '../types'
export const generateRefreshToken = (data: InfoJWT) =>
jwt.sign(data, process.env.REFRESH_TOKEN_SECRET as string, {
expiresIn: '1day'
expiresIn: '30 days'
})