feat(auth): handle google oauth account claim conflicts
Some checks failed
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-14 21:15:30 +03:30
parent 38ba89b82f
commit cd5409c9b2
4 changed files with 105 additions and 45 deletions

View File

@@ -119,11 +119,16 @@ export type GoogleOAuthFlowResponse =
first_name: string;
last_name: string;
avatar_url: string;
resolution: "new_account" | "existing_email_claim";
mobile_hint?: string | null;
}
| {
status: "claim_required";
mobile: string;
detail?: string;
email: string;
resolution: "existing_email_claim" | "existing_mobile_claim";
mobile_hint?: string | null;
};
export const getGoogleOAuthFlow = async (flow: string): Promise<GoogleOAuthFlowResponse> => {