1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import { MultiFactorError as MultiFactorErrorPublic } from '../model/public_types';
|
18 | import { FirebaseError } from '@firebase/util';
|
19 | import { AuthInternal } from '../model/auth';
|
20 | import { IdTokenResponse } from '../model/id_token';
|
21 | import { UserInternal } from '../model/user';
|
22 | import { AuthCredential } from '../core/credentials';
|
23 | import { IdTokenMfaResponse } from '../api/authentication/mfa';
|
24 | import { OperationType } from '../model/enums';
|
25 | export declare type MultiFactorErrorData = MultiFactorErrorPublic['customData'] & {
|
26 | _serverResponse: IdTokenMfaResponse;
|
27 | };
|
28 | export declare class MultiFactorError extends FirebaseError implements MultiFactorErrorPublic {
|
29 | readonly operationType: OperationType;
|
30 | readonly user?: UserInternal | undefined;
|
31 | readonly customData: MultiFactorErrorData;
|
32 | private constructor();
|
33 | static _fromErrorAndOperation(auth: AuthInternal, error: FirebaseError, operationType: OperationType, user?: UserInternal): MultiFactorError;
|
34 | }
|
35 | export declare function _processCredentialSavingMfaContextIfNecessary(auth: AuthInternal, operationType: OperationType, credential: AuthCredential, user?: UserInternal): Promise<IdTokenResponse>;
|