mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-26 12:33:38 +00:00
add short lived access token
This commit is contained in:
@@ -16,7 +16,7 @@ export class AuthService {
|
||||
const accessSecretKey = process.env.ACCESS_JWT_SECRET_KEY
|
||||
const refreshSecretKey = process.env.REFRESH_JWT_SECRET_KEY
|
||||
|
||||
const accessExpiresIn = rememberMe ? '1d' : '10m'
|
||||
const accessExpiresIn = rememberMe ? '1d' : '10s'
|
||||
|
||||
const payload: { userId: string; date: Date } = {
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user