fix(auth): narrow mobile auth fallback (#2046)

Co-authored-by: bashrusakh <bashrusakh@users.noreply.github.com>
This commit is contained in:
Leonid
2026-07-05 23:33:23 +03:00
committed by GitHub
co-authored by bashrusakh
parent 0a7807a9dc
commit ec61cf3573
5 changed files with 345 additions and 7 deletions
@@ -0,0 +1,11 @@
export type GateState = 'pending' | 'authenticated' | 'locked' | 'error' | 'rate-limited';
export const resolveStatusCheckFailureState = (options: {
shouldUseDesktopShellPasswordLogin?: boolean;
}): Exclude<GateState, 'pending' | 'authenticated' | 'rate-limited'> => {
if (options.shouldUseDesktopShellPasswordLogin) {
return 'locked';
}
return 'error';
};