@firebase/auth 0.19.2 → 0.19.3-canary.ce39a1a07
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 +9 -10
- package/dist/auth.d.ts +9 -10
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/index.rn.d.ts +2 -0
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-c9a90ba6.js → popup_redirect-cccc2cf0.js} +10 -10
- package/dist/cordova/popup_redirect-cccc2cf0.js.map +1 -0
- package/dist/cordova/src/core/providers/facebook.d.ts +2 -2
- package/dist/cordova/src/core/providers/github.d.ts +2 -2
- package/dist/cordova/src/core/providers/google.d.ts +2 -2
- package/dist/cordova/src/core/providers/twitter.d.ts +2 -2
- package/dist/cordova/src/model/public_types.d.ts +1 -2
- package/dist/cordova/src/platform_react_native/persistence/react_native.d.ts +4 -10
- package/dist/esm2017/{index-aa9a64ed.js → index-c35b9425.js} +10 -10
- package/dist/esm2017/index-c35b9425.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/index.rn.d.ts +2 -0
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/core/providers/facebook.d.ts +2 -2
- package/dist/esm2017/src/core/providers/github.d.ts +2 -2
- package/dist/esm2017/src/core/providers/google.d.ts +2 -2
- package/dist/esm2017/src/core/providers/twitter.d.ts +2 -2
- package/dist/esm2017/src/model/public_types.d.ts +1 -2
- package/dist/esm2017/src/platform_react_native/persistence/react_native.d.ts +4 -10
- package/dist/esm5/{index-258b887f.js → index-cbc86e16.js} +10 -10
- package/dist/esm5/index-cbc86e16.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/index.rn.d.ts +2 -0
- package/dist/esm5/internal.js +2 -2
- package/dist/esm5/src/core/providers/facebook.d.ts +2 -2
- package/dist/esm5/src/core/providers/github.d.ts +2 -2
- package/dist/esm5/src/core/providers/google.d.ts +2 -2
- package/dist/esm5/src/core/providers/twitter.d.ts +2 -2
- package/dist/esm5/src/model/public_types.d.ts +1 -2
- package/dist/esm5/src/platform_react_native/persistence/react_native.d.ts +4 -10
- package/dist/index.rn.d.ts +2 -0
- package/dist/index.webworker.esm5.js +9 -9
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/{index-c31cd336.js → index-1128f950.js} +10 -10
- package/dist/node/{index-c31cd336.js.map → index-1128f950.js.map} +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.rn.d.ts +2 -0
- package/dist/node/internal.js +1 -1
- package/dist/node/src/core/providers/facebook.d.ts +2 -2
- package/dist/node/src/core/providers/github.d.ts +2 -2
- package/dist/node/src/core/providers/google.d.ts +2 -2
- package/dist/node/src/core/providers/twitter.d.ts +2 -2
- package/dist/node/src/model/public_types.d.ts +1 -2
- package/dist/node/src/platform_react_native/persistence/react_native.d.ts +4 -10
- package/dist/node-esm/{index-8ad4aaf6.js → index-aea87009.js} +10 -10
- package/dist/node-esm/{index-8ad4aaf6.js.map → index-aea87009.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/index.rn.d.ts +2 -0
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/core/providers/facebook.d.ts +2 -2
- package/dist/node-esm/src/core/providers/github.d.ts +2 -2
- package/dist/node-esm/src/core/providers/google.d.ts +2 -2
- package/dist/node-esm/src/core/providers/twitter.d.ts +2 -2
- package/dist/node-esm/src/model/public_types.d.ts +1 -2
- package/dist/node-esm/src/platform_react_native/persistence/react_native.d.ts +4 -10
- package/dist/rn/index.js +12 -11
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/index.rn.d.ts +2 -0
- package/dist/rn/internal.js +1 -1
- package/dist/rn/{phone-92c70916.js → phone-9c91b099.js} +10 -10
- package/dist/rn/phone-9c91b099.js.map +1 -0
- package/dist/rn/src/core/providers/facebook.d.ts +2 -2
- package/dist/rn/src/core/providers/github.d.ts +2 -2
- package/dist/rn/src/core/providers/google.d.ts +2 -2
- package/dist/rn/src/core/providers/twitter.d.ts +2 -2
- package/dist/rn/src/model/public_types.d.ts +1 -2
- package/dist/rn/src/platform_react_native/persistence/react_native.d.ts +4 -10
- package/dist/src/core/providers/facebook.d.ts +2 -2
- package/dist/src/core/providers/github.d.ts +2 -2
- package/dist/src/core/providers/google.d.ts +2 -2
- package/dist/src/core/providers/twitter.d.ts +2 -2
- package/dist/src/model/public_types.d.ts +1 -2
- package/dist/src/platform_react_native/persistence/react_native.d.ts +4 -10
- package/package.json +6 -6
- package/dist/cordova/popup_redirect-c9a90ba6.js.map +0 -1
- package/dist/esm2017/index-aa9a64ed.js.map +0 -1
- package/dist/esm5/index-258b887f.js.map +0 -1
- package/dist/rn/phone-92c70916.js.map +0 -1
package/dist/node/index.js
CHANGED
package/dist/node/index.rn.d.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { FirebaseApp } from '@firebase/app';
|
|
18
18
|
import { Auth, Persistence } from './src/model/public_types';
|
|
19
|
+
import { getReactNativePersistence } from './src/platform_react_native/persistence/react_native';
|
|
19
20
|
export * from './index.shared';
|
|
20
21
|
export { PhoneAuthProvider } from './src/platform_browser/providers/phone';
|
|
21
22
|
export { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
|
|
@@ -27,4 +28,5 @@ export { PhoneMultiFactorGenerator } from './src/platform_browser/mfa/assertions
|
|
|
27
28
|
* @public
|
|
28
29
|
*/
|
|
29
30
|
export declare const reactNativeLocalPersistence: Persistence;
|
|
31
|
+
export { getReactNativePersistence };
|
|
30
32
|
export declare function getAuth(app?: FirebaseApp): Auth;
|
package/dist/node/internal.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-1128f950.js');
|
|
6
6
|
var tslib = require('tslib');
|
|
7
7
|
var util = require('@firebase/util');
|
|
8
8
|
var app = require('@firebase/app');
|
|
@@ -36,7 +36,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
36
36
|
* // This is the signed-in user
|
|
37
37
|
* const user = result.user;
|
|
38
38
|
* // This gives you a Facebook Access Token.
|
|
39
|
-
* const credential =
|
|
39
|
+
* const credential = FacebookAuthProvider.credentialFromResult(result);
|
|
40
40
|
* const token = credential.accessToken;
|
|
41
41
|
* }
|
|
42
42
|
* ```
|
|
@@ -51,7 +51,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
51
51
|
* // The signed-in user info.
|
|
52
52
|
* const user = result.user;
|
|
53
53
|
* // This gives you a Facebook Access Token.
|
|
54
|
-
* const credential =
|
|
54
|
+
* const credential = FacebookAuthProvider.credentialFromResult(result);
|
|
55
55
|
* const token = credential.accessToken;
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
@@ -40,7 +40,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
40
40
|
* // This is the signed-in user
|
|
41
41
|
* const user = result.user;
|
|
42
42
|
* // This gives you a Github Access Token.
|
|
43
|
-
* const credential =
|
|
43
|
+
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
44
44
|
* const token = credential.accessToken;
|
|
45
45
|
* }
|
|
46
46
|
* ```
|
|
@@ -55,7 +55,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
55
55
|
* // The signed-in user info.
|
|
56
56
|
* const user = result.user;
|
|
57
57
|
* // This gives you a Github Access Token.
|
|
58
|
-
* const credential =
|
|
58
|
+
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
59
59
|
* const token = credential.accessToken;
|
|
60
60
|
* ```
|
|
61
61
|
* @public
|
|
@@ -37,7 +37,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
37
37
|
* // This is the signed-in user
|
|
38
38
|
* const user = result.user;
|
|
39
39
|
* // This gives you a Google Access Token.
|
|
40
|
-
* const credential =
|
|
40
|
+
* const credential = GoogleAuthProvider.credentialFromResult(result);
|
|
41
41
|
* const token = credential.accessToken;
|
|
42
42
|
* }
|
|
43
43
|
* ```
|
|
@@ -53,7 +53,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
53
53
|
* // The signed-in user info.
|
|
54
54
|
* const user = result.user;
|
|
55
55
|
* // This gives you a Google Access Token.
|
|
56
|
-
* const credential =
|
|
56
|
+
* const credential = GoogleAuthProvider.credentialFromResult(result);
|
|
57
57
|
* const token = credential.accessToken;
|
|
58
58
|
* ```
|
|
59
59
|
*
|
|
@@ -51,7 +51,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
51
51
|
* // This is the signed-in user
|
|
52
52
|
* const user = result.user;
|
|
53
53
|
* // This gives you a Twitter Access Token and Secret.
|
|
54
|
-
* const credential =
|
|
54
|
+
* const credential = TwitterAuthProvider.credentialFromResult(result);
|
|
55
55
|
* const token = credential.accessToken;
|
|
56
56
|
* const secret = credential.secret;
|
|
57
57
|
* }
|
|
@@ -66,7 +66,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
66
66
|
* // The signed-in user info.
|
|
67
67
|
* const user = result.user;
|
|
68
68
|
* // This gives you a Twitter Access Token and Secret.
|
|
69
|
-
* const credential =
|
|
69
|
+
* const credential = TwitterAuthProvider.credentialFromResult(result);
|
|
70
70
|
* const token = credential.accessToken;
|
|
71
71
|
* const secret = credential.secret;
|
|
72
72
|
* ```
|
|
@@ -934,8 +934,7 @@ export interface User extends UserInfo {
|
|
|
934
934
|
toJSON(): object;
|
|
935
935
|
}
|
|
936
936
|
/**
|
|
937
|
-
* A structure containing a {@link User},
|
|
938
|
-
* and any additional user information that was returned from the identity provider.
|
|
937
|
+
* A structure containing a {@link User}, the {@link OperationType}, and the provider ID.
|
|
939
938
|
*
|
|
940
939
|
* @remarks
|
|
941
940
|
* `operationType` could be {@link OperationType}.SIGN_IN for a sign-in operation,
|
|
@@ -16,16 +16,10 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { Persistence, ReactNativeAsyncStorage } from '../../model/public_types';
|
|
18
18
|
/**
|
|
19
|
-
* Returns a persistence
|
|
20
|
-
* `react-native` or `@react-native-community/async-storage
|
|
19
|
+
* Returns a persistence object that wraps AsyncStorage imported from
|
|
20
|
+
* `react-native` or `@react-native-community/async-storage`, and can
|
|
21
|
+
* be used in the persistence dependency field in {@link initializeAuth}.
|
|
21
22
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* In the _getInstance() implementation (see src/core/persistence/index.ts),
|
|
25
|
-
* we expect each "externs.Persistence" object passed to us by the user to
|
|
26
|
-
* be able to be instantiated (as a class) using "new". That function also
|
|
27
|
-
* expects the constructor to be empty. Since ReactNativeStorage requires the
|
|
28
|
-
* underlying storage layer, we need to be able to create subclasses
|
|
29
|
-
* (closures, esentially) that have the storage layer but empty constructor.
|
|
23
|
+
* @public
|
|
30
24
|
*/
|
|
31
25
|
export declare function getReactNativePersistence(storage: ReactNativeAsyncStorage): Persistence;
|
|
@@ -3663,7 +3663,7 @@ class OAuthProvider extends BaseOAuthProvider {
|
|
|
3663
3663
|
* // This is the signed-in user
|
|
3664
3664
|
* const user = result.user;
|
|
3665
3665
|
* // This gives you a Facebook Access Token.
|
|
3666
|
-
* const credential =
|
|
3666
|
+
* const credential = FacebookAuthProvider.credentialFromResult(result);
|
|
3667
3667
|
* const token = credential.accessToken;
|
|
3668
3668
|
* }
|
|
3669
3669
|
* ```
|
|
@@ -3678,7 +3678,7 @@ class OAuthProvider extends BaseOAuthProvider {
|
|
|
3678
3678
|
* // The signed-in user info.
|
|
3679
3679
|
* const user = result.user;
|
|
3680
3680
|
* // This gives you a Facebook Access Token.
|
|
3681
|
-
* const credential =
|
|
3681
|
+
* const credential = FacebookAuthProvider.credentialFromResult(result);
|
|
3682
3682
|
* const token = credential.accessToken;
|
|
3683
3683
|
* ```
|
|
3684
3684
|
*
|
|
@@ -3779,7 +3779,7 @@ FacebookAuthProvider.PROVIDER_ID = "facebook.com" /* FACEBOOK */;
|
|
|
3779
3779
|
* // This is the signed-in user
|
|
3780
3780
|
* const user = result.user;
|
|
3781
3781
|
* // This gives you a Google Access Token.
|
|
3782
|
-
* const credential =
|
|
3782
|
+
* const credential = GoogleAuthProvider.credentialFromResult(result);
|
|
3783
3783
|
* const token = credential.accessToken;
|
|
3784
3784
|
* }
|
|
3785
3785
|
* ```
|
|
@@ -3795,7 +3795,7 @@ FacebookAuthProvider.PROVIDER_ID = "facebook.com" /* FACEBOOK */;
|
|
|
3795
3795
|
* // The signed-in user info.
|
|
3796
3796
|
* const user = result.user;
|
|
3797
3797
|
* // This gives you a Google Access Token.
|
|
3798
|
-
* const credential =
|
|
3798
|
+
* const credential = GoogleAuthProvider.credentialFromResult(result);
|
|
3799
3799
|
* const token = credential.accessToken;
|
|
3800
3800
|
* ```
|
|
3801
3801
|
*
|
|
@@ -3904,7 +3904,7 @@ GoogleAuthProvider.PROVIDER_ID = "google.com" /* GOOGLE */;
|
|
|
3904
3904
|
* // This is the signed-in user
|
|
3905
3905
|
* const user = result.user;
|
|
3906
3906
|
* // This gives you a Github Access Token.
|
|
3907
|
-
* const credential =
|
|
3907
|
+
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
3908
3908
|
* const token = credential.accessToken;
|
|
3909
3909
|
* }
|
|
3910
3910
|
* ```
|
|
@@ -3919,7 +3919,7 @@ GoogleAuthProvider.PROVIDER_ID = "google.com" /* GOOGLE */;
|
|
|
3919
3919
|
* // The signed-in user info.
|
|
3920
3920
|
* const user = result.user;
|
|
3921
3921
|
* // This gives you a Github Access Token.
|
|
3922
|
-
* const credential =
|
|
3922
|
+
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
3923
3923
|
* const token = credential.accessToken;
|
|
3924
3924
|
* ```
|
|
3925
3925
|
* @public
|
|
@@ -4183,7 +4183,7 @@ class SAMLAuthProvider extends FederatedAuthProvider {
|
|
|
4183
4183
|
* // This is the signed-in user
|
|
4184
4184
|
* const user = result.user;
|
|
4185
4185
|
* // This gives you a Twitter Access Token and Secret.
|
|
4186
|
-
* const credential =
|
|
4186
|
+
* const credential = TwitterAuthProvider.credentialFromResult(result);
|
|
4187
4187
|
* const token = credential.accessToken;
|
|
4188
4188
|
* const secret = credential.secret;
|
|
4189
4189
|
* }
|
|
@@ -4198,7 +4198,7 @@ class SAMLAuthProvider extends FederatedAuthProvider {
|
|
|
4198
4198
|
* // The signed-in user info.
|
|
4199
4199
|
* const user = result.user;
|
|
4200
4200
|
* // This gives you a Twitter Access Token and Secret.
|
|
4201
|
-
* const credential =
|
|
4201
|
+
* const credential = TwitterAuthProvider.credentialFromResult(result);
|
|
4202
4202
|
* const token = credential.accessToken;
|
|
4203
4203
|
* const secret = credential.secret;
|
|
4204
4204
|
* ```
|
|
@@ -5802,7 +5802,7 @@ function multiFactor(user) {
|
|
|
5802
5802
|
}
|
|
5803
5803
|
|
|
5804
5804
|
var name = "@firebase/auth";
|
|
5805
|
-
var version = "0.19.
|
|
5805
|
+
var version = "0.19.3-canary.ce39a1a07";
|
|
5806
5806
|
|
|
5807
5807
|
/**
|
|
5808
5808
|
* @license
|
|
@@ -6028,4 +6028,4 @@ class PhoneMultiFactorGenerator {
|
|
|
6028
6028
|
AuthImpl.prototype.setPersistence = async () => { };
|
|
6029
6029
|
|
|
6030
6030
|
export { sendPasswordResetEmail as $, ActionCodeOperation as A, prodErrorMap as B, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as C, initializeAuth as D, connectAuthEmulator as E, FactorId as F, AuthCredential as G, EmailAuthCredential as H, OAuthCredential as I, PhoneAuthCredential as J, inMemoryPersistence as K, EmailAuthProvider as L, FacebookAuthProvider as M, GoogleAuthProvider as N, OperationType as O, PhoneAuthProvider as P, GithubAuthProvider as Q, RecaptchaVerifier as R, SignInMethod as S, OAuthProvider as T, SAMLAuthProvider as U, TwitterAuthProvider as V, signInAnonymously as W, signInWithCredential as X, linkWithCredential as Y, reauthenticateWithCredential as Z, signInWithCustomToken as _, browserSessionPersistence as a, confirmPasswordReset as a0, applyActionCode as a1, checkActionCode as a2, verifyPasswordResetCode as a3, createUserWithEmailAndPassword as a4, signInWithEmailAndPassword as a5, sendSignInLinkToEmail as a6, isSignInWithEmailLink as a7, signInWithEmailLink as a8, fetchSignInMethodsForEmail as a9, _emulatorUrl as aA, _performApiRequest as aB, _isIOS7Or8 as aC, _isIOS as aD, _isAndroid as aE, _createError as aF, _isSafari as aG, _isIframe as aH, _isMobileBrowser as aI, _isIE10 as aJ, UserImpl as aK, AuthImpl as aL, _getClientVersion as aM, FetchProvider as aN, SAMLAuthCredential as aO, sendEmailVerification as aa, verifyBeforeUpdateEmail as ab, ActionCodeURL as ac, parseActionCodeURL as ad, updateProfile as ae, updateEmail as af, updatePassword as ag, getIdToken as ah, getIdTokenResult as ai, unlink as aj, getAdditionalUserInfo as ak, reload as al, getMultiFactorResolver as am, multiFactor as an, _getInstance as ao, _assert as ap, _signInWithCredential as aq, _reauthenticate as ar, _link as as, signInWithIdp as at, _fail as au, debugAssert as av, _persistenceKeyName as aw, _castAuth as ax, FederatedAuthProvider as ay, BaseOAuthProvider as az, browserLocalPersistence as b, signInWithPopup as c, linkWithPopup as d, reauthenticateWithPopup as e, signInWithRedirect as f, linkWithRedirect as g, reauthenticateWithRedirect as h, indexedDBLocalPersistence as i, getRedirectResult as j, browserPopupRedirectResolver as k, linkWithPhoneNumber as l, PhoneMultiFactorGenerator as m, getAuth as n, ProviderId as o, setPersistence as p, onIdTokenChanged as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, onAuthStateChanged as t, updatePhoneNumber as u, useDeviceLanguage as v, updateCurrentUser as w, signOut as x, deleteUser as y, debugErrorMap as z };
|
|
6031
|
-
//# sourceMappingURL=index-
|
|
6031
|
+
//# sourceMappingURL=index-aea87009.js.map
|