@firebase/auth 0.20.1 → 0.20.2-20220524224751
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.
- package/CHANGELOG.md +6 -0
- package/dist/auth-public.d.ts +21 -10
- package/dist/auth.d.ts +21 -10
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/index.js.map +1 -1
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-212c98e6.js → popup_redirect-0b94702a.js} +14 -8
- package/dist/cordova/{popup_redirect-212c98e6.js.map → popup_redirect-0b94702a.js.map} +1 -1
- package/dist/cordova/src/core/index.d.ts +12 -6
- package/dist/cordova/src/model/public_types.d.ts +9 -4
- package/dist/esm2017/{index-3b632d0b.js → index-ff134925.js} +14 -8
- package/dist/esm2017/index-ff134925.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/internal.js.map +1 -1
- package/dist/esm2017/src/core/index.d.ts +12 -6
- package/dist/esm2017/src/model/public_types.d.ts +9 -4
- package/dist/esm5/{index-0e5111f4.js → index-7bf76fcf.js} +14 -8
- package/dist/esm5/index-7bf76fcf.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/internal.js.map +1 -1
- package/dist/esm5/src/core/index.d.ts +12 -6
- package/dist/esm5/src/model/public_types.d.ts +9 -4
- package/dist/index.webworker.esm5.js +13 -7
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-ab3e8e37.js → index-42f2e73f.js} +14 -8
- package/dist/{node-esm/index-5ae5a5eb.js.map → node/index-42f2e73f.js.map} +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/core/index.d.ts +12 -6
- package/dist/node/src/model/public_types.d.ts +9 -4
- package/dist/node-esm/{index-5ae5a5eb.js → index-cbdb03d7.js} +14 -8
- package/dist/{node/index-ab3e8e37.js.map → node-esm/index-cbdb03d7.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/index.d.ts +12 -6
- package/dist/node-esm/src/model/public_types.d.ts +9 -4
- package/dist/rn/index.js +1 -1
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/{phone-cf00e1ee.js → phone-08495d93.js} +14 -8
- package/dist/rn/{phone-cf00e1ee.js.map → phone-08495d93.js.map} +1 -1
- package/dist/rn/src/core/index.d.ts +12 -6
- package/dist/rn/src/model/public_types.d.ts +9 -4
- package/dist/src/core/index.d.ts +12 -6
- package/dist/src/model/public_types.d.ts +9 -4
- package/package.json +3 -3
- package/dist/esm2017/index-3b632d0b.js.map +0 -1
- package/dist/esm5/index-0e5111f4.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @firebase/auth
|
|
2
2
|
|
|
3
|
+
## 0.20.2-20220524224751
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e15e8952b`](https://github.com/firebase/firebase-js-sdk/commit/e15e8952b114d811965a5481699dc3694b4a9fdd) [#6234](https://github.com/firebase/firebase-js-sdk/pull/6234) (fixes [#6218](https://github.com/firebase/firebase-js-sdk/issues/6218)) - Add missing field to `firebase` claim in token result typing
|
|
8
|
+
|
|
3
9
|
## 0.20.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/auth-public.d.ts
CHANGED
|
@@ -358,8 +358,10 @@ export declare interface Auth {
|
|
|
358
358
|
* To keep the old behavior, see {@link Auth.onIdTokenChanged}.
|
|
359
359
|
*
|
|
360
360
|
* @param nextOrObserver - callback triggered on change.
|
|
361
|
-
* @param error - callback
|
|
362
|
-
*
|
|
361
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
362
|
+
* on signing in/out can be caught in promises returned from
|
|
363
|
+
* sign-in/sign-out functions.
|
|
364
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
363
365
|
*/
|
|
364
366
|
onAuthStateChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
365
367
|
/**
|
|
@@ -379,8 +381,10 @@ export declare interface Auth {
|
|
|
379
381
|
* This includes sign-in, sign-out, and token refresh events.
|
|
380
382
|
*
|
|
381
383
|
* @param nextOrObserver - callback triggered on change.
|
|
382
|
-
* @param error - callback
|
|
383
|
-
*
|
|
384
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
385
|
+
* on signing in/out can be caught in promises returned from
|
|
386
|
+
* sign-in/sign-out functions.
|
|
387
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
384
388
|
*/
|
|
385
389
|
onIdTokenChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
386
390
|
/** The currently signed-in user (or null). */
|
|
@@ -2111,21 +2115,27 @@ export declare class OAuthProvider extends BaseOAuthProvider {
|
|
|
2111
2115
|
*
|
|
2112
2116
|
* @param auth - The {@link Auth} instance.
|
|
2113
2117
|
* @param nextOrObserver - callback triggered on change.
|
|
2114
|
-
* @param error - callback
|
|
2115
|
-
*
|
|
2118
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
2119
|
+
* on signing in/out can be caught in promises returned from
|
|
2120
|
+
* sign-in/sign-out functions.
|
|
2121
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
2116
2122
|
*
|
|
2117
2123
|
* @public
|
|
2118
2124
|
*/
|
|
2119
2125
|
export declare function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObserver<User>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
2120
2126
|
|
|
2121
2127
|
/**
|
|
2122
|
-
* Adds an observer for changes to the signed-in user's ID token
|
|
2123
|
-
*
|
|
2128
|
+
* Adds an observer for changes to the signed-in user's ID token.
|
|
2129
|
+
*
|
|
2130
|
+
* @remarks
|
|
2131
|
+
* This includes sign-in, sign-out, and token refresh events.
|
|
2124
2132
|
*
|
|
2125
2133
|
* @param auth - The {@link Auth} instance.
|
|
2126
2134
|
* @param nextOrObserver - callback triggered on change.
|
|
2127
|
-
* @param error - callback
|
|
2128
|
-
*
|
|
2135
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
2136
|
+
* on signing in/out can be caught in promises returned from
|
|
2137
|
+
* sign-in/sign-out functions.
|
|
2138
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
2129
2139
|
*
|
|
2130
2140
|
* @public
|
|
2131
2141
|
*/
|
|
@@ -2173,6 +2183,7 @@ export declare interface ParsedToken {
|
|
|
2173
2183
|
'firebase'?: {
|
|
2174
2184
|
'sign_in_provider'?: string;
|
|
2175
2185
|
'sign_in_second_factor'?: string;
|
|
2186
|
+
'identities'?: Record<string, string>;
|
|
2176
2187
|
};
|
|
2177
2188
|
/** Map of any additional custom claims. */
|
|
2178
2189
|
[key: string]: string | object | undefined;
|
package/dist/auth.d.ts
CHANGED
|
@@ -367,8 +367,10 @@ export declare interface Auth {
|
|
|
367
367
|
* To keep the old behavior, see {@link Auth.onIdTokenChanged}.
|
|
368
368
|
*
|
|
369
369
|
* @param nextOrObserver - callback triggered on change.
|
|
370
|
-
* @param error - callback
|
|
371
|
-
*
|
|
370
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
371
|
+
* on signing in/out can be caught in promises returned from
|
|
372
|
+
* sign-in/sign-out functions.
|
|
373
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
372
374
|
*/
|
|
373
375
|
onAuthStateChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
374
376
|
/**
|
|
@@ -388,8 +390,10 @@ export declare interface Auth {
|
|
|
388
390
|
* This includes sign-in, sign-out, and token refresh events.
|
|
389
391
|
*
|
|
390
392
|
* @param nextOrObserver - callback triggered on change.
|
|
391
|
-
* @param error - callback
|
|
392
|
-
*
|
|
393
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
394
|
+
* on signing in/out can be caught in promises returned from
|
|
395
|
+
* sign-in/sign-out functions.
|
|
396
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
393
397
|
*/
|
|
394
398
|
onIdTokenChanged(nextOrObserver: NextOrObserver<User | null>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
395
399
|
/** The currently signed-in user (or null). */
|
|
@@ -2436,21 +2440,27 @@ export declare class OAuthProvider extends BaseOAuthProvider {
|
|
|
2436
2440
|
*
|
|
2437
2441
|
* @param auth - The {@link Auth} instance.
|
|
2438
2442
|
* @param nextOrObserver - callback triggered on change.
|
|
2439
|
-
* @param error - callback
|
|
2440
|
-
*
|
|
2443
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
2444
|
+
* on signing in/out can be caught in promises returned from
|
|
2445
|
+
* sign-in/sign-out functions.
|
|
2446
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
2441
2447
|
*
|
|
2442
2448
|
* @public
|
|
2443
2449
|
*/
|
|
2444
2450
|
export declare function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObserver<User>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
|
|
2445
2451
|
|
|
2446
2452
|
/**
|
|
2447
|
-
* Adds an observer for changes to the signed-in user's ID token
|
|
2448
|
-
*
|
|
2453
|
+
* Adds an observer for changes to the signed-in user's ID token.
|
|
2454
|
+
*
|
|
2455
|
+
* @remarks
|
|
2456
|
+
* This includes sign-in, sign-out, and token refresh events.
|
|
2449
2457
|
*
|
|
2450
2458
|
* @param auth - The {@link Auth} instance.
|
|
2451
2459
|
* @param nextOrObserver - callback triggered on change.
|
|
2452
|
-
* @param error - callback
|
|
2453
|
-
*
|
|
2460
|
+
* @param error - Deprecated. This callback is never triggered. Errors
|
|
2461
|
+
* on signing in/out can be caught in promises returned from
|
|
2462
|
+
* sign-in/sign-out functions.
|
|
2463
|
+
* @param completed - Deprecated. This callback is never triggered.
|
|
2454
2464
|
*
|
|
2455
2465
|
* @public
|
|
2456
2466
|
*/
|
|
@@ -2498,6 +2508,7 @@ export declare interface ParsedToken {
|
|
|
2498
2508
|
'firebase'?: {
|
|
2499
2509
|
'sign_in_provider'?: string;
|
|
2500
2510
|
'sign_in_second_factor'?: string;
|
|
2511
|
+
'identities'?: Record<string, string>;
|
|
2501
2512
|
};
|
|
2502
2513
|
/** Map of any additional custom claims. */
|
|
2503
2514
|
[key: string]: string | object | undefined;
|
package/dist/cordova/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getApp, _getProvider } from '@firebase/app';
|
|
2
|
-
import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-
|
|
3
|
-
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-
|
|
2
|
+
import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-0b94702a.js';
|
|
3
|
+
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-0b94702a.js';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import '@firebase/util';
|
|
6
6
|
import '@firebase/component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/platform_cordova/strategies/redirect.ts","../../index.cordova.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Auth,\n AuthProvider,\n PopupRedirectResolver,\n User\n} from '../../model/public_types';\nimport {\n _linkWithRedirect,\n _reauthenticateWithRedirect,\n _signInWithRedirect\n} from '../../platform_browser/strategies/redirect';\n\nexport function signInWithRedirect(\n auth: Auth,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise<void> {\n return _signInWithRedirect(auth, provider, resolver) as Promise<void>;\n}\n\nexport function reauthenticateWithRedirect(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise<void> {\n return _reauthenticateWithRedirect(user, provider, resolver) as Promise<void>;\n}\n\nexport function linkWithRedirect(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise<void> {\n return _linkWithRedirect(user, provider, resolver) as Promise<void>;\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * This is the file that people using Cordova will actually import. You\n * should only include this file if you have something specific about your\n * implementation that mandates having a separate entrypoint. Otherwise you can\n * just use index.ts\n */\n\nimport { FirebaseApp, getApp, _getProvider } from '@firebase/app';\nimport { Auth } from './src/model/public_types';\nimport { indexedDBLocalPersistence } from './src/platform_browser/persistence/indexed_db';\n\nimport { initializeAuth } from './src';\nimport { registerAuth } from './src/core/auth/register';\nimport { ClientPlatform } from './src/core/util/version';\n\nexport * from './index.shared';\n\n// Cordova also supports indexedDB / browserSession / browserLocal\nexport { indexedDBLocalPersistence } from './src/platform_browser/persistence/indexed_db';\nexport { browserLocalPersistence } from './src/platform_browser/persistence/local_storage';\nexport { browserSessionPersistence } from './src/platform_browser/persistence/session_storage';\nexport { getRedirectResult } from './src/platform_browser/strategies/redirect';\n\nexport { cordovaPopupRedirectResolver } from './src/platform_cordova/popup_redirect/popup_redirect';\nexport {\n signInWithRedirect,\n reauthenticateWithRedirect,\n linkWithRedirect\n} from './src/platform_cordova/strategies/redirect';\n\nimport { cordovaPopupRedirectResolver } from './src/platform_cordova/popup_redirect/popup_redirect';\n\nexport function getAuth(app: FirebaseApp = getApp()): Auth {\n const provider = _getProvider(app, 'auth');\n\n if (provider.isInitialized()) {\n return provider.getImmediate();\n }\n\n return initializeAuth(app, {\n persistence: indexedDBLocalPersistence,\n popupRedirectResolver: cordovaPopupRedirectResolver\n });\n}\n\nregisterAuth(ClientPlatform.CORDOVA);\n"],"names":[],"mappings":";;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/platform_cordova/strategies/redirect.ts","../../index.cordova.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Auth,\n AuthProvider,\n PopupRedirectResolver,\n User\n} from '../../model/public_types';\nimport {\n _linkWithRedirect,\n _reauthenticateWithRedirect,\n _signInWithRedirect\n} from '../../platform_browser/strategies/redirect';\n\nexport function signInWithRedirect(\n auth: Auth,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise<void> {\n return _signInWithRedirect(auth, provider, resolver) as Promise<void>;\n}\n\nexport function reauthenticateWithRedirect(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise<void> {\n return _reauthenticateWithRedirect(user, provider, resolver) as Promise<void>;\n}\n\nexport function linkWithRedirect(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise<void> {\n return _linkWithRedirect(user, provider, resolver) as Promise<void>;\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * This is the file that people using Cordova will actually import. You\n * should only include this file if you have something specific about your\n * implementation that mandates having a separate entrypoint. Otherwise you can\n * just use index.ts\n */\n\nimport { FirebaseApp, getApp, _getProvider } from '@firebase/app';\nimport { Auth } from './src/model/public_types';\nimport { indexedDBLocalPersistence } from './src/platform_browser/persistence/indexed_db';\n\nimport { initializeAuth } from './src';\nimport { registerAuth } from './src/core/auth/register';\nimport { ClientPlatform } from './src/core/util/version';\n\nexport * from './index.shared';\n\n// Cordova also supports indexedDB / browserSession / browserLocal\nexport { indexedDBLocalPersistence } from './src/platform_browser/persistence/indexed_db';\nexport { browserLocalPersistence } from './src/platform_browser/persistence/local_storage';\nexport { browserSessionPersistence } from './src/platform_browser/persistence/session_storage';\nexport { getRedirectResult } from './src/platform_browser/strategies/redirect';\n\nexport { cordovaPopupRedirectResolver } from './src/platform_cordova/popup_redirect/popup_redirect';\nexport {\n signInWithRedirect,\n reauthenticateWithRedirect,\n linkWithRedirect\n} from './src/platform_cordova/strategies/redirect';\n\nimport { cordovaPopupRedirectResolver } from './src/platform_cordova/popup_redirect/popup_redirect';\n\nexport function getAuth(app: FirebaseApp = getApp()): Auth {\n const provider = _getProvider(app, 'auth');\n\n if (provider.isInitialized()) {\n return provider.getImmediate();\n }\n\n return initializeAuth(app, {\n persistence: indexedDBLocalPersistence,\n popupRedirectResolver: cordovaPopupRedirectResolver\n });\n}\n\nregisterAuth(ClientPlatform.CORDOVA);\n"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;SAca,kBAAkB,CAChC,IAAU,EACV,QAAsB,EACtB,QAAgC,EAAA;IAEhC,OAAO,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAkB,CAAC;AACxE,CAAC;SAEe,0BAA0B,CACxC,IAAU,EACV,QAAsB,EACtB,QAAgC,EAAA;IAEhC,OAAO,2BAA2B,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAkB,CAAC;AAChF,CAAC;SAEe,gBAAgB,CAC9B,IAAU,EACV,QAAsB,EACtB,QAAgC,EAAA;IAEhC,OAAO,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAkB,CAAC;AACtE;;ACnDA;;;;;;;;;;;;;;;AAeG;AAkCG,SAAU,OAAO,CAAC,GAA2B,EAAA;IAA3B,IAAA,GAAA,KAAA,KAAA,CAAA,EAAA,EAAA,GAAmB,GAAA,MAAM,EAAE,CAAA,EAAA;IACjD,IAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;AAE3C,IAAA,IAAI,QAAQ,CAAC,aAAa,EAAE,EAAE;AAC5B,QAAA,OAAO,QAAQ,CAAC,YAAY,EAAE,CAAC;AAChC,KAAA;IAED,OAAO,cAAc,CAAC,GAAG,EAAE;AACzB,QAAA,WAAW,EAAE,yBAAyB;AACtC,QAAA,qBAAqB,EAAE,4BAA4B;AACpD,KAAA,CAAC,CAAC;AACL,CAAC;AAED,YAAY,yBAAwB;;;;"}
|
package/dist/cordova/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { af as _performApiRequest, ag as _addTidIfNecessary, ah as _createError, ai as _assert, aj as Delay, ak as _window, al as _isHttpOrHttps, am as _isWorker, an as _castAuth, J as signInWithCredential, ao as sendPhoneVerificationCode, ap as startEnrollPhoneMfa, K as linkWithCredential, aq as _assertLinkedStatus, L as reauthenticateWithCredential, ar as _link, x as PhoneAuthCredential, as as debugAssert, at as _generateEventId, au as AbstractPopupRedirectOperation, av as _assertInstanceOf, aw as _withDefaultResolver, ax as FederatedAuthProvider, ay as _fail, az as _getProjectConfig, aA as _getCurrentUrl, aB as _emulatorUrl, aC as _isChromeIOS, aD as _isFirefox, aE as _isIOSStandalone, aF as _isMobileBrowser, aG as _isSafari, aH as _isIOS, f as browserSessionPersistence, aI as _getRedirectResult, aJ as _overrideRedirectResult, aK as _getRedirectUrl, aL as _setWindowLocation, aM as AuthEventManager, aN as debugFail, aO as finalizeEnrollPhoneMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence } from './popup_redirect-
|
|
2
|
-
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, aS as AuthImpl, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, aU as FetchProvider, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, aV as SAMLAuthCredential, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aQ as UserImpl, ai as _assert, an as _castAuth, ay as _fail, at as _generateEventId, aT as _getClientVersion, aR as _getInstance, aI as _getRedirectResult, aJ as _overrideRedirectResult, aP as _persistenceKeyName, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, aX as linkWithRedirect, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, aY as reauthenticateWithRedirect, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, aW as signInWithRedirect, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-
|
|
1
|
+
import { af as _performApiRequest, ag as _addTidIfNecessary, ah as _createError, ai as _assert, aj as Delay, ak as _window, al as _isHttpOrHttps, am as _isWorker, an as _castAuth, J as signInWithCredential, ao as sendPhoneVerificationCode, ap as startEnrollPhoneMfa, K as linkWithCredential, aq as _assertLinkedStatus, L as reauthenticateWithCredential, ar as _link, x as PhoneAuthCredential, as as debugAssert, at as _generateEventId, au as AbstractPopupRedirectOperation, av as _assertInstanceOf, aw as _withDefaultResolver, ax as FederatedAuthProvider, ay as _fail, az as _getProjectConfig, aA as _getCurrentUrl, aB as _emulatorUrl, aC as _isChromeIOS, aD as _isFirefox, aE as _isIOSStandalone, aF as _isMobileBrowser, aG as _isSafari, aH as _isIOS, f as browserSessionPersistence, aI as _getRedirectResult, aJ as _overrideRedirectResult, aK as _getRedirectUrl, aL as _setWindowLocation, aM as AuthEventManager, aN as debugFail, aO as finalizeEnrollPhoneMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence } from './popup_redirect-0b94702a.js';
|
|
2
|
+
export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, aS as AuthImpl, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, aU as FetchProvider, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, aV as SAMLAuthCredential, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, aQ as UserImpl, ai as _assert, an as _castAuth, ay as _fail, at as _generateEventId, aT as _getClientVersion, aR as _getInstance, aI as _getRedirectResult, aJ as _overrideRedirectResult, aP as _persistenceKeyName, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, aX as linkWithRedirect, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, aY as reauthenticateWithRedirect, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, aW as signInWithRedirect, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-0b94702a.js';
|
|
3
3
|
import { __awaiter, __generator, __assign, __extends, __spreadArray } from 'tslib';
|
|
4
4
|
import { querystring, getModularInstance, getUA } from '@firebase/util';
|
|
5
5
|
import { SDK_VERSION, getApp, _getProvider } from '@firebase/app';
|