feat: Update default JWT access token expiration to 7 days and refresh token expiration to 365 days.
This commit is contained in:
@@ -17,8 +17,8 @@ export default () => ({
|
||||
// JWT Authentication
|
||||
jwt: {
|
||||
secret: process.env.JWT_SECRET || 'super-secret-key',
|
||||
accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '2h',
|
||||
refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '30d',
|
||||
accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '7d',
|
||||
refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '365d',
|
||||
},
|
||||
|
||||
// Password Hashing
|
||||
|
||||
Reference in New Issue
Block a user