mirror of
https://github.com/plankanban/planka.git
synced 2025-12-22 09:15:37 +03:00
fix: Provide default value for token expiration
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports.custom = {
|
||||
|
||||
baseUrl: process.env.BASE_URL,
|
||||
|
||||
tokenExpiresIn: process.env.TOKEN_EXPIRES_IN,
|
||||
tokenExpiresIn: parseInt(process.env.TOKEN_EXPIRES_IN, 10) || 365,
|
||||
|
||||
userAvatarsPath: path.join(sails.config.paths.public, 'user-avatars'),
|
||||
userAvatarsUrl: `${process.env.BASE_URL}/user-avatars`,
|
||||
|
||||
Reference in New Issue
Block a user