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 Authentication
|
||||||
jwt: {
|
jwt: {
|
||||||
secret: process.env.JWT_SECRET || 'super-secret-key',
|
secret: process.env.JWT_SECRET || 'super-secret-key',
|
||||||
accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '2h',
|
accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '7d',
|
||||||
refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '30d',
|
refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '365d',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Password Hashing
|
// Password Hashing
|
||||||
|
|||||||
Reference in New Issue
Block a user