implement new invitation system

* fix comments on the frontend
* move jwt token service to its own module
* other fixes and updates
This commit is contained in:
Philipinho
2024-05-14 22:55:11 +01:00
parent 525990d6e5
commit eefe63d1cd
75 changed files with 10965 additions and 7846 deletions

View File

@ -9,9 +9,21 @@ export class EnvironmentService {
return this.configService.get<string>('NODE_ENV');
}
getAppUrl(): string {
return (
this.configService.get<string>('APP_URL') ||
'http://localhost:' + this.getPort()
);
}
getPort(): number {
return parseInt(this.configService.get<string>('PORT'));
}
getAppSecret(): string {
return this.configService.get<string>('APP_SECRET');
}
getDatabaseURL(): string {
return this.configService.get<string>('DATABASE_URL');
}