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:
Thomas Trompette
2024-03-19 16:39:53 +01:00
committed by GitHub
parent 9f6c578a46
commit e579554d47
24 changed files with 306 additions and 55 deletions

View File

@ -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()