Add getters factory for attachements (#4567)
* Add getter factory for attachements * Override guard in test * Add secret in env variables * Return custom message on expiration * Rename to signPayload --------- Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
@ -129,6 +129,13 @@ export class EnvironmentVariables {
|
||||
@IsOptional()
|
||||
LOGIN_TOKEN_EXPIRES_IN: string = '15m';
|
||||
|
||||
@IsString()
|
||||
FILE_TOKEN_SECRET: string;
|
||||
|
||||
@IsDuration()
|
||||
@IsOptional()
|
||||
FILE_TOKEN_EXPIRES_IN: string;
|
||||
|
||||
// Auth
|
||||
@IsUrl({ require_tld: false })
|
||||
@IsOptional()
|
||||
|
||||
Reference in New Issue
Block a user