feat: implement checkTempIdOrPhone function and update OTP verification logic

This commit is contained in:
2025-04-18 13:50:58 +05:00
parent 4127035471
commit f3f5800df6
3 changed files with 29 additions and 4 deletions
+4
View File
@@ -15,6 +15,10 @@ export type FilterUserResponse = {
ok: boolean;
verified: boolean;
};
export type FilterTempUserResponse = {
ok: boolean;
otp_verified: boolean;
};
export async function signin(previousState: ActionState, formData: FormData) {
const phoneNumber = formData.get("phoneNumber") as string;