OTP_EXPIRATION_TIME

This commit is contained in:
2025-11-24 19:08:01 +03:30
parent 8a00cfd929
commit 0555dbe586
+1 -1
View File
@@ -25,7 +25,7 @@ export class AuthService {
private readonly adminRepository: AdminRepository, private readonly adminRepository: AdminRepository,
private readonly configService: ConfigService, private readonly configService: ConfigService,
) { ) {
this.OTP_EXPIRATION_TIME = this.configService.getOrThrow<number>('OTP_EXPIRATION_TIME')??240; this.OTP_EXPIRATION_TIME = this.configService.get<number>('OTP_EXPIRATION_TIME') ?? 240;
} }
private userOtpKey(restaurantSlug: string, phone: string) { private userOtpKey(restaurantSlug: string, phone: string) {
return `otp:${restaurantSlug}:${phone}`; return `otp:${restaurantSlug}:${phone}`;