forked from Yara724/api
FAKE SMS
This commit is contained in:
@@ -41,3 +41,10 @@ export function readOtpExpireMinutesFromEnv(): number {
|
||||
const raw = Number(process.env.EXP_OTP_TIME ?? "2");
|
||||
return Number.isFinite(raw) && raw > 0 ? raw : 2;
|
||||
}
|
||||
|
||||
/** Dev-only: skip SMS provider and accept a fixed OTP for any mobile. */
|
||||
export const FAKE_OTP_CODE = "12345";
|
||||
|
||||
export function isFakeOtpEnabled(): boolean {
|
||||
return process.env.FAKE_OTP === "true";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user