fix(auth): narrow mobile auth fallback (#2046)
Co-authored-by: bashrusakh <bashrusakh@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
bashrusakh
parent
0a7807a9dc
commit
ec61cf3573
@@ -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';
|
||||
};
|
||||
Reference in New Issue
Block a user