1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import { Auth, AuthSettings, Config, EmulatorConfig, PopupRedirectResolver, User } from './public_types';
|
18 | import { ErrorFactory } from '@firebase/util';
|
19 | import { AuthErrorCode, AuthErrorParams } from '../core/errors';
|
20 | import { PopupRedirectResolverInternal } from './popup_redirect';
|
21 | import { UserInternal } from './user';
|
22 | import { ClientPlatform } from '../core/util/version';
|
23 | export declare type AppName = string;
|
24 | export declare type ApiKey = string;
|
25 | export declare type AuthDomain = string;
|
26 |
|
27 |
|
28 |
|
29 | export interface ConfigInternal extends Config {
|
30 | |
31 |
|
32 |
|
33 | emulator?: {
|
34 | url: string;
|
35 | };
|
36 | |
37 |
|
38 |
|
39 | clientPlatform: ClientPlatform;
|
40 | }
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | export interface AuthInternal extends Auth {
|
48 | currentUser: User | null;
|
49 | emulatorConfig: EmulatorConfig | null;
|
50 | _canInitEmulator: boolean;
|
51 | _isInitialized: boolean;
|
52 | _initializationPromise: Promise<void> | null;
|
53 | _updateCurrentUser(user: UserInternal | null): Promise<void>;
|
54 | _onStorageEvent(): void;
|
55 | _notifyListenersIfCurrent(user: UserInternal): void;
|
56 | _persistUserIfCurrent(user: UserInternal): Promise<void>;
|
57 | _setRedirectUser(user: UserInternal | null, popupRedirectResolver?: PopupRedirectResolver): Promise<void>;
|
58 | _redirectUserForId(id: string): Promise<UserInternal | null>;
|
59 | _popupRedirectResolver: PopupRedirectResolverInternal | null;
|
60 | _key(): string;
|
61 | _startProactiveRefresh(): void;
|
62 | _stopProactiveRefresh(): void;
|
63 | _getPersistence(): string;
|
64 | _logFramework(framework: string): void;
|
65 | _getFrameworks(): readonly string[];
|
66 | _getAdditionalHeaders(): Promise<Record<string, string>>;
|
67 | readonly name: AppName;
|
68 | readonly config: ConfigInternal;
|
69 | languageCode: string | null;
|
70 | tenantId: string | null;
|
71 | readonly settings: AuthSettings;
|
72 | _errorFactory: ErrorFactory<AuthErrorCode, AuthErrorParams>;
|
73 | useDeviceLanguage(): void;
|
74 | signOut(): Promise<void>;
|
75 | }
|