1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import { FirebaseError } from '@firebase/util';
|
18 | import { AuthEvent, AuthEventConsumer, AuthEventType, PopupRedirectResolverInternal } from '../../model/popup_redirect';
|
19 | import { UserInternal, UserCredentialInternal } from '../../model/user';
|
20 | import { AuthInternal } from '../../model/auth';
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare abstract class AbstractPopupRedirectOperation implements AuthEventConsumer {
|
26 | protected readonly auth: AuthInternal;
|
27 | protected readonly resolver: PopupRedirectResolverInternal;
|
28 | protected user?: UserInternal | undefined;
|
29 | protected readonly bypassAuthState: boolean;
|
30 | private pendingPromise;
|
31 | private eventManager;
|
32 | readonly filter: AuthEventType[];
|
33 | abstract eventId: string | null;
|
34 | constructor(auth: AuthInternal, filter: AuthEventType | AuthEventType[], resolver: PopupRedirectResolverInternal, user?: UserInternal | undefined, bypassAuthState?: boolean);
|
35 | abstract onExecution(): Promise<void>;
|
36 | execute(): Promise<UserCredentialInternal | null>;
|
37 | onAuthEvent(event: AuthEvent): Promise<void>;
|
38 | onError(error: FirebaseError): void;
|
39 | private getIdpTask;
|
40 | protected resolve(cred: UserCredentialInternal | null): void;
|
41 | protected reject(error: Error): void;
|
42 | private unregisterAndCleanUp;
|
43 | abstract cleanUp(): void;
|
44 | }
|