accessJwtConfig |
Type : JwtSignOptions
|
Default value : {
secret: process.env.ACCESS_JWT_SECRET,
expiresIn: '15m',
}
|
Configurations for the access jsonwebtoken used for authentication |
refreshJwtConfig |
Type : JwtSignOptions
|
Default value : {
secret: process.env.REFRESH_JWT_SECRET,
expiresIn: '90d',
}
|
Configurations for the refresh jsonwebtoken used for authentication |
hashConfig |
Type : object
|
Default value : {
saltRounds: 10,
}
|
Global configuration for amount of saltRounds on hashes of sensitive information |
IS_ADMIN_KEY |
Type : string
|
Default value : 'isAdmin'
|
Value to verify if @IsAdmin() is being used in the endpoint Consult RolesGuard |
IS_PUBLIC_KEY |
Type : string
|
Default value : 'isPublic'
|
Value to verify if @Public() is being used in the endpoint Consult JwtAuthGuard |
Public |
Default value : (): CustomDecorator => SetMetadata(IS_PUBLIC_KEY, true)
|
Makes an endpoint accessible by unauthenticated users
|
maxImageUploadSize |
Default value : 3 * 1024 * 1024
|
Constant that sets the maximum image upload file size |
validImageUploadTypesRegex |
Default value : /jpeg|jpg|png/
|
Constant containing a Regular Expression with the valid image upload types |