@firebase/auth-compat 0.5.15 → 0.5.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/auth-compat/index.d.ts +50 -50
  2. package/dist/auth-compat/index.node.d.ts +24 -24
  3. package/dist/auth-compat/scripts/run_node_tests.d.ts +17 -17
  4. package/dist/auth-compat/src/auth.d.ts +72 -72
  5. package/dist/auth-compat/src/auth.test.d.ts +17 -17
  6. package/dist/auth-compat/src/persistence.d.ts +29 -29
  7. package/dist/auth-compat/src/phone_auth_provider.d.ts +29 -29
  8. package/dist/auth-compat/src/platform.d.ts +39 -39
  9. package/dist/auth-compat/src/popup_redirect.d.ts +34 -34
  10. package/dist/auth-compat/src/popup_redirect.test.d.ts +17 -17
  11. package/dist/auth-compat/src/recaptcha_verifier.d.ts +28 -28
  12. package/dist/auth-compat/src/user.d.ts +64 -64
  13. package/dist/auth-compat/src/user_credential.d.ts +20 -20
  14. package/dist/auth-compat/src/wrap.d.ts +26 -26
  15. package/dist/auth-compat/test/helpers/helpers.d.ts +24 -24
  16. package/dist/auth-compat/test/integration/flows/anonymous.test.d.ts +17 -17
  17. package/dist/auth-compat/test/integration/flows/custom.test.d.ts +17 -17
  18. package/dist/auth-compat/test/integration/flows/email.test.d.ts +17 -17
  19. package/dist/auth-compat/test/integration/flows/idp.test.d.ts +17 -17
  20. package/dist/auth-compat/test/integration/flows/oob.test.d.ts +17 -17
  21. package/dist/auth-compat/test/integration/flows/phone.test.d.ts +17 -17
  22. package/dist/esm/auth-compat/index.d.ts +50 -50
  23. package/dist/esm/auth-compat/index.node.d.ts +24 -24
  24. package/dist/esm/auth-compat/scripts/run_node_tests.d.ts +17 -17
  25. package/dist/esm/auth-compat/src/auth.d.ts +72 -72
  26. package/dist/esm/auth-compat/src/auth.test.d.ts +17 -17
  27. package/dist/esm/auth-compat/src/persistence.d.ts +29 -29
  28. package/dist/esm/auth-compat/src/phone_auth_provider.d.ts +29 -29
  29. package/dist/esm/auth-compat/src/platform.d.ts +39 -39
  30. package/dist/esm/auth-compat/src/popup_redirect.d.ts +34 -34
  31. package/dist/esm/auth-compat/src/popup_redirect.test.d.ts +17 -17
  32. package/dist/esm/auth-compat/src/recaptcha_verifier.d.ts +28 -28
  33. package/dist/esm/auth-compat/src/user.d.ts +64 -64
  34. package/dist/esm/auth-compat/src/user_credential.d.ts +20 -20
  35. package/dist/esm/auth-compat/src/wrap.d.ts +26 -26
  36. package/dist/esm/auth-compat/test/helpers/helpers.d.ts +24 -24
  37. package/dist/esm/auth-compat/test/integration/flows/anonymous.test.d.ts +17 -17
  38. package/dist/esm/auth-compat/test/integration/flows/custom.test.d.ts +17 -17
  39. package/dist/esm/auth-compat/test/integration/flows/email.test.d.ts +17 -17
  40. package/dist/esm/auth-compat/test/integration/flows/idp.test.d.ts +17 -17
  41. package/dist/esm/auth-compat/test/integration/flows/oob.test.d.ts +17 -17
  42. package/dist/esm/auth-compat/test/integration/flows/phone.test.d.ts +17 -17
  43. package/dist/esm/index.node.esm.js +993 -993
  44. package/dist/esm/index.node.esm.js.map +1 -1
  45. package/dist/firebase-auth.js +1 -1
  46. package/dist/firebase-auth.js.map +1 -1
  47. package/dist/index.cjs.js +977 -977
  48. package/dist/index.cjs.js.map +1 -1
  49. package/dist/index.esm2017.js +977 -977
  50. package/dist/index.esm2017.js.map +1 -1
  51. package/dist/index.node.cjs.js +993 -993
  52. package/dist/index.node.cjs.js.map +1 -1
  53. package/package.json +7 -7
@@ -1,53 +1,53 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import * as types from '@firebase/auth-types';
18
- declare module '@firebase/component' {
19
- interface NameServiceMapping {
20
- 'auth-compat': types.FirebaseAuth;
21
- }
22
- }
23
- declare module '@firebase/app-compat' {
24
- interface FirebaseNamespace {
25
- auth: {
26
- (app?: FirebaseApp): types.FirebaseAuth;
27
- Auth: typeof types.FirebaseAuth;
28
- EmailAuthProvider: typeof types.EmailAuthProvider;
29
- EmailAuthProvider_Instance: typeof types.EmailAuthProvider_Instance;
30
- FacebookAuthProvider: typeof types.FacebookAuthProvider;
31
- FacebookAuthProvider_Instance: typeof types.FacebookAuthProvider_Instance;
32
- GithubAuthProvider: typeof types.GithubAuthProvider;
33
- GithubAuthProvider_Instance: typeof types.GithubAuthProvider_Instance;
34
- GoogleAuthProvider: typeof types.GoogleAuthProvider;
35
- GoogleAuthProvider_Instance: typeof types.GoogleAuthProvider_Instance;
36
- OAuthProvider: typeof types.OAuthProvider;
37
- SAMLAuthProvider: typeof types.SAMLAuthProvider;
38
- PhoneAuthProvider: typeof types.PhoneAuthProvider;
39
- PhoneAuthProvider_Instance: typeof types.PhoneAuthProvider_Instance;
40
- PhoneMultiFactorGenerator: typeof types.PhoneMultiFactorGenerator;
41
- RecaptchaVerifier: typeof types.RecaptchaVerifier;
42
- RecaptchaVerifier_Instance: typeof types.RecaptchaVerifier_Instance;
43
- TwitterAuthProvider: typeof types.TwitterAuthProvider;
44
- TwitterAuthProvider_Instance: typeof types.TwitterAuthProvider_Instance;
45
- };
46
- }
47
- interface FirebaseApp {
48
- auth?(): types.FirebaseAuth;
49
- }
50
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import * as types from '@firebase/auth-types';
18
+ declare module '@firebase/component' {
19
+ interface NameServiceMapping {
20
+ 'auth-compat': types.FirebaseAuth;
21
+ }
22
+ }
23
+ declare module '@firebase/app-compat' {
24
+ interface FirebaseNamespace {
25
+ auth: {
26
+ (app?: FirebaseApp): types.FirebaseAuth;
27
+ Auth: typeof types.FirebaseAuth;
28
+ EmailAuthProvider: typeof types.EmailAuthProvider;
29
+ EmailAuthProvider_Instance: typeof types.EmailAuthProvider_Instance;
30
+ FacebookAuthProvider: typeof types.FacebookAuthProvider;
31
+ FacebookAuthProvider_Instance: typeof types.FacebookAuthProvider_Instance;
32
+ GithubAuthProvider: typeof types.GithubAuthProvider;
33
+ GithubAuthProvider_Instance: typeof types.GithubAuthProvider_Instance;
34
+ GoogleAuthProvider: typeof types.GoogleAuthProvider;
35
+ GoogleAuthProvider_Instance: typeof types.GoogleAuthProvider_Instance;
36
+ OAuthProvider: typeof types.OAuthProvider;
37
+ SAMLAuthProvider: typeof types.SAMLAuthProvider;
38
+ PhoneAuthProvider: typeof types.PhoneAuthProvider;
39
+ PhoneAuthProvider_Instance: typeof types.PhoneAuthProvider_Instance;
40
+ PhoneMultiFactorGenerator: typeof types.PhoneMultiFactorGenerator;
41
+ RecaptchaVerifier: typeof types.RecaptchaVerifier;
42
+ RecaptchaVerifier_Instance: typeof types.RecaptchaVerifier_Instance;
43
+ TwitterAuthProvider: typeof types.TwitterAuthProvider;
44
+ TwitterAuthProvider_Instance: typeof types.TwitterAuthProvider_Instance;
45
+ };
46
+ }
47
+ interface FirebaseApp {
48
+ auth?(): types.FirebaseAuth;
49
+ }
50
+ }
51
51
 
52
52
  import { FirebaseApp as FirebaseAppCompat } from "@firebase/app-compat";
53
53
  import { type User, type Unsubscribe, type ActionCodeInfo, type UserCredential, type Auth, type IdTokenResult, type MultiFactorError, type MultiFactorResolver, type PopupRedirectResolver, type Dependencies, type AuthCredential, type ApplicationVerifier, type ConfirmationResult, type AuthProvider, type MultiFactorUser, type NextOrObserver, type ErrorFn, type CompleteFn, type ActionCodeSettings, type Persistence, type PhoneAuthCredential, type PasswordValidationStatus } from "@firebase/auth";
@@ -1,24 +1,24 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- /**
18
- * This is the file that people using Node.js will actually import. You should
19
- * only include this file if you have something specific about your
20
- * implementation that mandates having a separate entrypoint. Otherwise you can
21
- * just use index.ts
22
- */
23
- export * from './index';
24
- import './index';
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * This is the file that people using Node.js will actually import. You should
19
+ * only include this file if you have something specific about your
20
+ * implementation that mandates having a separate entrypoint. Otherwise you can
21
+ * just use index.ts
22
+ */
23
+ export * from './index';
24
+ import './index';
@@ -1,17 +1,17 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export {};
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -1,72 +1,72 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
18
- import * as exp from '@firebase/auth/internal';
19
- import * as compat from '@firebase/auth-types';
20
- import { Provider } from '@firebase/component';
21
- import { Observer, Unsubscribe } from '@firebase/util';
22
- import { Wrapper } from './wrap';
23
- export declare class Auth implements compat.FirebaseAuth, Wrapper<exp.Auth>, _FirebaseService {
24
- readonly app: FirebaseApp;
25
- static Persistence: {
26
- LOCAL: string;
27
- NONE: string;
28
- SESSION: string;
29
- };
30
- readonly _delegate: exp.AuthImpl;
31
- constructor(app: FirebaseApp, provider: Provider<'auth'>);
32
- get emulatorConfig(): compat.EmulatorConfig | null;
33
- get currentUser(): compat.User | null;
34
- get languageCode(): string | null;
35
- set languageCode(languageCode: string | null);
36
- get settings(): compat.AuthSettings;
37
- get tenantId(): string | null;
38
- set tenantId(tid: string | null);
39
- useDeviceLanguage(): void;
40
- signOut(): Promise<void>;
41
- useEmulator(url: string, options?: {
42
- disableWarnings: boolean;
43
- }): void;
44
- applyActionCode(code: string): Promise<void>;
45
- checkActionCode(code: string): Promise<compat.ActionCodeInfo>;
46
- confirmPasswordReset(code: string, newPassword: string): Promise<void>;
47
- createUserWithEmailAndPassword(email: string, password: string): Promise<compat.UserCredential>;
48
- fetchProvidersForEmail(email: string): Promise<string[]>;
49
- fetchSignInMethodsForEmail(email: string): Promise<string[]>;
50
- isSignInWithEmailLink(emailLink: string): boolean;
51
- getRedirectResult(): Promise<compat.UserCredential>;
52
- addFrameworkForLogging(framework: string): void;
53
- onAuthStateChanged(nextOrObserver: Observer<unknown> | ((a: compat.User | null) => unknown), errorFn?: (error: compat.Error) => unknown, completed?: Unsubscribe): Unsubscribe;
54
- onIdTokenChanged(nextOrObserver: Observer<unknown> | ((a: compat.User | null) => unknown), errorFn?: (error: compat.Error) => unknown, completed?: Unsubscribe): Unsubscribe;
55
- sendSignInLinkToEmail(email: string, actionCodeSettings: compat.ActionCodeSettings): Promise<void>;
56
- sendPasswordResetEmail(email: string, actionCodeSettings?: compat.ActionCodeSettings | null): Promise<void>;
57
- setPersistence(persistence: string): Promise<void>;
58
- signInAndRetrieveDataWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>;
59
- signInAnonymously(): Promise<compat.UserCredential>;
60
- signInWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>;
61
- signInWithCustomToken(token: string): Promise<compat.UserCredential>;
62
- signInWithEmailAndPassword(email: string, password: string): Promise<compat.UserCredential>;
63
- signInWithEmailLink(email: string, emailLink?: string): Promise<compat.UserCredential>;
64
- signInWithPhoneNumber(phoneNumber: string, applicationVerifier: compat.ApplicationVerifier): Promise<compat.ConfirmationResult>;
65
- signInWithPopup(provider: compat.AuthProvider): Promise<compat.UserCredential>;
66
- signInWithRedirect(provider: compat.AuthProvider): Promise<void>;
67
- updateCurrentUser(user: compat.User | null): Promise<void>;
68
- verifyPasswordResetCode(code: string): Promise<string>;
69
- unwrap(): exp.Auth;
70
- _delete(): Promise<void>;
71
- private linkUnderlyingAuth;
72
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
18
+ import * as exp from '@firebase/auth/internal';
19
+ import * as compat from '@firebase/auth-types';
20
+ import { Provider } from '@firebase/component';
21
+ import { Observer, Unsubscribe } from '@firebase/util';
22
+ import { Wrapper } from './wrap';
23
+ export declare class Auth implements compat.FirebaseAuth, Wrapper<exp.Auth>, _FirebaseService {
24
+ readonly app: FirebaseApp;
25
+ static Persistence: {
26
+ LOCAL: string;
27
+ NONE: string;
28
+ SESSION: string;
29
+ };
30
+ readonly _delegate: exp.AuthImpl;
31
+ constructor(app: FirebaseApp, provider: Provider<'auth'>);
32
+ get emulatorConfig(): compat.EmulatorConfig | null;
33
+ get currentUser(): compat.User | null;
34
+ get languageCode(): string | null;
35
+ set languageCode(languageCode: string | null);
36
+ get settings(): compat.AuthSettings;
37
+ get tenantId(): string | null;
38
+ set tenantId(tid: string | null);
39
+ useDeviceLanguage(): void;
40
+ signOut(): Promise<void>;
41
+ useEmulator(url: string, options?: {
42
+ disableWarnings: boolean;
43
+ }): void;
44
+ applyActionCode(code: string): Promise<void>;
45
+ checkActionCode(code: string): Promise<compat.ActionCodeInfo>;
46
+ confirmPasswordReset(code: string, newPassword: string): Promise<void>;
47
+ createUserWithEmailAndPassword(email: string, password: string): Promise<compat.UserCredential>;
48
+ fetchProvidersForEmail(email: string): Promise<string[]>;
49
+ fetchSignInMethodsForEmail(email: string): Promise<string[]>;
50
+ isSignInWithEmailLink(emailLink: string): boolean;
51
+ getRedirectResult(): Promise<compat.UserCredential>;
52
+ addFrameworkForLogging(framework: string): void;
53
+ onAuthStateChanged(nextOrObserver: Observer<unknown> | ((a: compat.User | null) => unknown), errorFn?: (error: compat.Error) => unknown, completed?: Unsubscribe): Unsubscribe;
54
+ onIdTokenChanged(nextOrObserver: Observer<unknown> | ((a: compat.User | null) => unknown), errorFn?: (error: compat.Error) => unknown, completed?: Unsubscribe): Unsubscribe;
55
+ sendSignInLinkToEmail(email: string, actionCodeSettings: compat.ActionCodeSettings): Promise<void>;
56
+ sendPasswordResetEmail(email: string, actionCodeSettings?: compat.ActionCodeSettings | null): Promise<void>;
57
+ setPersistence(persistence: string): Promise<void>;
58
+ signInAndRetrieveDataWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>;
59
+ signInAnonymously(): Promise<compat.UserCredential>;
60
+ signInWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>;
61
+ signInWithCustomToken(token: string): Promise<compat.UserCredential>;
62
+ signInWithEmailAndPassword(email: string, password: string): Promise<compat.UserCredential>;
63
+ signInWithEmailLink(email: string, emailLink?: string): Promise<compat.UserCredential>;
64
+ signInWithPhoneNumber(phoneNumber: string, applicationVerifier: compat.ApplicationVerifier): Promise<compat.ConfirmationResult>;
65
+ signInWithPopup(provider: compat.AuthProvider): Promise<compat.UserCredential>;
66
+ signInWithRedirect(provider: compat.AuthProvider): Promise<void>;
67
+ updateCurrentUser(user: compat.User | null): Promise<void>;
68
+ verifyPasswordResetCode(code: string): Promise<string>;
69
+ unwrap(): exp.Auth;
70
+ _delete(): Promise<void>;
71
+ private linkUnderlyingAuth;
72
+ }
@@ -1,17 +1,17 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export {};
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};
@@ -1,29 +1,29 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import * as exp from '@firebase/auth/internal';
18
- export declare const Persistence: {
19
- LOCAL: string;
20
- NONE: string;
21
- SESSION: string;
22
- };
23
- /**
24
- * Validates that an argument is a valid persistence value. If an invalid type
25
- * is specified, an error is thrown synchronously.
26
- */
27
- export declare function _validatePersistenceArgument(auth: exp.Auth, persistence: string): void;
28
- export declare function _savePersistenceForRedirect(auth: exp.AuthInternal): Promise<void>;
29
- export declare function _getPersistencesFromRedirect(apiKey: string, appName: string): exp.Persistence[];
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import * as exp from '@firebase/auth/internal';
18
+ export declare const Persistence: {
19
+ LOCAL: string;
20
+ NONE: string;
21
+ SESSION: string;
22
+ };
23
+ /**
24
+ * Validates that an argument is a valid persistence value. If an invalid type
25
+ * is specified, an error is thrown synchronously.
26
+ */
27
+ export declare function _validatePersistenceArgument(auth: exp.Auth, persistence: string): void;
28
+ export declare function _savePersistenceForRedirect(auth: exp.AuthInternal): Promise<void>;
29
+ export declare function _getPersistencesFromRedirect(apiKey: string, appName: string): exp.Persistence[];
@@ -1,29 +1,29 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import * as exp from '@firebase/auth/internal';
18
- import * as compat from '@firebase/auth-types';
19
- import { Compat } from '@firebase/util';
20
- export declare class PhoneAuthProvider implements compat.PhoneAuthProvider, Compat<exp.PhoneAuthProvider> {
21
- providerId: string;
22
- readonly _delegate: exp.PhoneAuthProvider;
23
- static PHONE_SIGN_IN_METHOD: "phone";
24
- static PROVIDER_ID: "phone";
25
- static credential(verificationId: string, verificationCode: string): compat.AuthCredential;
26
- constructor();
27
- verifyPhoneNumber(phoneInfoOptions: string | compat.PhoneSingleFactorInfoOptions | compat.PhoneMultiFactorEnrollInfoOptions | compat.PhoneMultiFactorSignInInfoOptions, applicationVerifier: compat.ApplicationVerifier): Promise<string>;
28
- unwrap(): exp.PhoneAuthProvider;
29
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import * as exp from '@firebase/auth/internal';
18
+ import * as compat from '@firebase/auth-types';
19
+ import { Compat } from '@firebase/util';
20
+ export declare class PhoneAuthProvider implements compat.PhoneAuthProvider, Compat<exp.PhoneAuthProvider> {
21
+ providerId: string;
22
+ readonly _delegate: exp.PhoneAuthProvider;
23
+ static PHONE_SIGN_IN_METHOD: "phone";
24
+ static PROVIDER_ID: "phone";
25
+ static credential(verificationId: string, verificationCode: string): compat.AuthCredential;
26
+ constructor();
27
+ verifyPhoneNumber(phoneInfoOptions: string | compat.PhoneSingleFactorInfoOptions | compat.PhoneMultiFactorEnrollInfoOptions | compat.PhoneMultiFactorSignInInfoOptions, applicationVerifier: compat.ApplicationVerifier): Promise<string>;
28
+ unwrap(): exp.PhoneAuthProvider;
29
+ }
@@ -1,39 +1,39 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- declare global {
18
- interface Document {
19
- documentMode?: number;
20
- }
21
- }
22
- /**
23
- * @param {?string=} ua The user agent.
24
- * @return {boolean} Whether the app is rendered in a mobile iOS or Android
25
- * Cordova environment.
26
- */
27
- export declare function _isAndroidOrIosCordovaScheme(ua?: string): boolean;
28
- /** @return {boolean} Whether web storage is supported. */
29
- export declare function _isWebStorageSupported(): boolean;
30
- /**
31
- * @param {?Object=} global The optional global scope.
32
- * @return {boolean} Whether current environment is a worker.
33
- */
34
- export declare function _isWorker(): boolean;
35
- export declare function _isPopupRedirectSupported(): boolean;
36
- /** Quick check that indicates the platform *may* be Cordova */
37
- export declare function _isLikelyCordova(): boolean;
38
- export declare function _isCordova(): Promise<boolean>;
39
- export declare function _getSelfWindow(): Window | null;
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ declare global {
18
+ interface Document {
19
+ documentMode?: number;
20
+ }
21
+ }
22
+ /**
23
+ * @param {?string=} ua The user agent.
24
+ * @return {boolean} Whether the app is rendered in a mobile iOS or Android
25
+ * Cordova environment.
26
+ */
27
+ export declare function _isAndroidOrIosCordovaScheme(ua?: string): boolean;
28
+ /** @return {boolean} Whether web storage is supported. */
29
+ export declare function _isWebStorageSupported(): boolean;
30
+ /**
31
+ * @param {?Object=} global The optional global scope.
32
+ * @return {boolean} Whether current environment is a worker.
33
+ */
34
+ export declare function _isWorker(): boolean;
35
+ export declare function _isPopupRedirectSupported(): boolean;
36
+ /** Quick check that indicates the platform *may* be Cordova */
37
+ export declare function _isLikelyCordova(): boolean;
38
+ export declare function _isCordova(): Promise<boolean>;
39
+ export declare function _getSelfWindow(): Window | null;
@@ -1,34 +1,34 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import * as exp from '@firebase/auth/internal';
18
- /** Platform-agnostic popup-redirect resolver */
19
- export declare class CompatPopupRedirectResolver implements exp.PopupRedirectResolverInternal {
20
- private readonly browserResolver;
21
- private readonly cordovaResolver;
22
- private underlyingResolver;
23
- _redirectPersistence: exp.Persistence;
24
- _completeRedirectFn: (auth: exp.Auth, resolver: exp.PopupRedirectResolver, bypassAuthState: boolean) => Promise<exp.UserCredential | null>;
25
- _overrideRedirectResult: typeof exp._overrideRedirectResult;
26
- _initialize(auth: exp.AuthImpl): Promise<exp.EventManager>;
27
- _openPopup(auth: exp.AuthImpl, provider: exp.AuthProvider, authType: exp.AuthEventType, eventId?: string): Promise<exp.AuthPopup>;
28
- _openRedirect(auth: exp.AuthImpl, provider: exp.AuthProvider, authType: exp.AuthEventType, eventId?: string): Promise<void>;
29
- _isIframeWebStorageSupported(auth: exp.AuthImpl, cb: (support: boolean) => unknown): void;
30
- _originValidation(auth: exp.Auth): Promise<void>;
31
- get _shouldInitProactively(): boolean;
32
- private get assertedUnderlyingResolver();
33
- private selectUnderlyingResolver;
34
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import * as exp from '@firebase/auth/internal';
18
+ /** Platform-agnostic popup-redirect resolver */
19
+ export declare class CompatPopupRedirectResolver implements exp.PopupRedirectResolverInternal {
20
+ private readonly browserResolver;
21
+ private readonly cordovaResolver;
22
+ private underlyingResolver;
23
+ _redirectPersistence: exp.Persistence;
24
+ _completeRedirectFn: (auth: exp.Auth, resolver: exp.PopupRedirectResolver, bypassAuthState: boolean) => Promise<exp.UserCredential | null>;
25
+ _overrideRedirectResult: typeof exp._overrideRedirectResult;
26
+ _initialize(auth: exp.AuthImpl): Promise<exp.EventManager>;
27
+ _openPopup(auth: exp.AuthImpl, provider: exp.AuthProvider, authType: exp.AuthEventType, eventId?: string): Promise<exp.AuthPopup>;
28
+ _openRedirect(auth: exp.AuthImpl, provider: exp.AuthProvider, authType: exp.AuthEventType, eventId?: string): Promise<void>;
29
+ _isIframeWebStorageSupported(auth: exp.AuthImpl, cb: (support: boolean) => unknown): void;
30
+ _originValidation(auth: exp.Auth): Promise<void>;
31
+ get _shouldInitProactively(): boolean;
32
+ private get assertedUnderlyingResolver();
33
+ private selectUnderlyingResolver;
34
+ }