1 import type { Credentials, SrpConfig } from '@proton/shared/lib/srp';
3 export interface SrpAuthModalResult {
5 credentials: Credentials;
9 export interface SSOAuthModalResult {
12 ssoReauthToken: string;
17 export type AuthModalResult = SrpAuthModalResult | SSOAuthModalResult;
19 export interface OwnAuthModalProps {
21 onSuccess?: (data: AuthModalResult) => Promise<void> | void;
22 onCancel: (() => void) | undefined;
23 onError?: (error: any) => void;
24 prioritised2FAItem?: 'fido2' | 'totp';
25 onRecoveryClick?: () => void;
26 scope: 'password' | 'locked';