OTP_EXPIRATION_TIME
This commit is contained in:
@@ -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}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user