@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/esm5/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-cbc86e16.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
package/dist/esm5/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/esm5/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ao as _isAndroid, ap as _isIOS7Or8, aq as _isIOS, ar as _fail, as as _getRedirectUrl, at as debugAssert, au as _getProjectConfig, av as _createError, aw as _assert, ax as AuthEventManager, ay as _getInstance, b as browserLocalPersistence, az as _persistenceKeyName, aA as _clearRedirectOutcomes, a as browserSessionPersistence, aB as _getRedirectResult, aC as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, ar as _fail, aG as _generateEventId, aF as _getClientVersion, ay as _getInstance, aB as _getRedirectResult, az as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { ao as _isAndroid, ap as _isIOS7Or8, aq as _isIOS, ar as _fail, as as _getRedirectUrl, at as debugAssert, au as _getProjectConfig, av as _createError, aw as _assert, ax as AuthEventManager, ay as _getInstance, b as browserLocalPersistence, az as _persistenceKeyName, aA as _clearRedirectOutcomes, a as browserSessionPersistence, aB as _getRedirectResult, aC as _castAuth } from './index-cbc86e16.js';
|
|
2
|
+
export { A as ActionCodeOperation, ac as ActionCodeURL, G as AuthCredential, C as AuthErrorCodes, aE as AuthImpl, aH as AuthPopup, H as EmailAuthCredential, L as EmailAuthProvider, M as FacebookAuthProvider, F as FactorId, aI as FetchProvider, Q as GithubAuthProvider, N as GoogleAuthProvider, I as OAuthCredential, T as OAuthProvider, O as OperationType, J as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, o as ProviderId, R as RecaptchaVerifier, aJ as SAMLAuthCredential, U as SAMLAuthProvider, S as SignInMethod, V as TwitterAuthProvider, aD as UserImpl, aw as _assert, aC as _castAuth, ar as _fail, aG as _generateEventId, aF as _getClientVersion, ay as _getInstance, aB as _getRedirectResult, az as _persistenceKeyName, a1 as applyActionCode, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a2 as checkActionCode, a0 as confirmPasswordReset, E as connectAuthEmulator, a4 as createUserWithEmailAndPassword, z as debugErrorMap, y as deleteUser, a9 as fetchSignInMethodsForEmail, ak as getAdditionalUserInfo, n as getAuth, ah as getIdToken, ai as getIdTokenResult, am as getMultiFactorResolver, j as getRedirectResult, K as inMemoryPersistence, i as indexedDBLocalPersistence, D as initializeAuth, a7 as isSignInWithEmailLink, Y as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, an as multiFactor, t as onAuthStateChanged, q as onIdTokenChanged, ad as parseActionCodeURL, B as prodErrorMap, Z as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, al as reload, aa as sendEmailVerification, $ as sendPasswordResetEmail, a6 as sendSignInLinkToEmail, p as setPersistence, W as signInAnonymously, X as signInWithCredential, _ as signInWithCustomToken, a5 as signInWithEmailAndPassword, a8 as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, x as signOut, aj as unlink, w as updateCurrentUser, af as updateEmail, ag as updatePassword, u as updatePhoneNumber, ae as updateProfile, v as useDeviceLanguage, ab as verifyBeforeUpdateEmail, a3 as verifyPasswordResetCode } from './index-cbc86e16.js';
|
|
3
3
|
import { __awaiter, __generator, __extends } from 'tslib';
|
|
4
4
|
import { querystringDecode } from '@firebase/util';
|
|
5
5
|
import '@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;
|
package/dist/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;
|
|
@@ -522,7 +522,7 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
var name = "@firebase/auth";
|
|
525
|
-
var version = "0.19.
|
|
525
|
+
var version = "0.19.3-canary.ce39a1a07";
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
528
|
* @license
|
|
@@ -5297,7 +5297,7 @@ var OAuthProvider = /** @class */ (function (_super) {
|
|
|
5297
5297
|
* // This is the signed-in user
|
|
5298
5298
|
* const user = result.user;
|
|
5299
5299
|
* // This gives you a Facebook Access Token.
|
|
5300
|
-
* const credential =
|
|
5300
|
+
* const credential = FacebookAuthProvider.credentialFromResult(result);
|
|
5301
5301
|
* const token = credential.accessToken;
|
|
5302
5302
|
* }
|
|
5303
5303
|
* ```
|
|
@@ -5312,7 +5312,7 @@ var OAuthProvider = /** @class */ (function (_super) {
|
|
|
5312
5312
|
* // The signed-in user info.
|
|
5313
5313
|
* const user = result.user;
|
|
5314
5314
|
* // This gives you a Facebook Access Token.
|
|
5315
|
-
* const credential =
|
|
5315
|
+
* const credential = FacebookAuthProvider.credentialFromResult(result);
|
|
5316
5316
|
* const token = credential.accessToken;
|
|
5317
5317
|
* ```
|
|
5318
5318
|
*
|
|
@@ -5416,7 +5416,7 @@ var FacebookAuthProvider = /** @class */ (function (_super) {
|
|
|
5416
5416
|
* // This is the signed-in user
|
|
5417
5417
|
* const user = result.user;
|
|
5418
5418
|
* // This gives you a Google Access Token.
|
|
5419
|
-
* const credential =
|
|
5419
|
+
* const credential = GoogleAuthProvider.credentialFromResult(result);
|
|
5420
5420
|
* const token = credential.accessToken;
|
|
5421
5421
|
* }
|
|
5422
5422
|
* ```
|
|
@@ -5432,7 +5432,7 @@ var FacebookAuthProvider = /** @class */ (function (_super) {
|
|
|
5432
5432
|
* // The signed-in user info.
|
|
5433
5433
|
* const user = result.user;
|
|
5434
5434
|
* // This gives you a Google Access Token.
|
|
5435
|
-
* const credential =
|
|
5435
|
+
* const credential = GoogleAuthProvider.credentialFromResult(result);
|
|
5436
5436
|
* const token = credential.accessToken;
|
|
5437
5437
|
* ```
|
|
5438
5438
|
*
|
|
@@ -5545,7 +5545,7 @@ var GoogleAuthProvider = /** @class */ (function (_super) {
|
|
|
5545
5545
|
* // This is the signed-in user
|
|
5546
5546
|
* const user = result.user;
|
|
5547
5547
|
* // This gives you a Github Access Token.
|
|
5548
|
-
* const credential =
|
|
5548
|
+
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
5549
5549
|
* const token = credential.accessToken;
|
|
5550
5550
|
* }
|
|
5551
5551
|
* ```
|
|
@@ -5560,7 +5560,7 @@ var GoogleAuthProvider = /** @class */ (function (_super) {
|
|
|
5560
5560
|
* // The signed-in user info.
|
|
5561
5561
|
* const user = result.user;
|
|
5562
5562
|
* // This gives you a Github Access Token.
|
|
5563
|
-
* const credential =
|
|
5563
|
+
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
5564
5564
|
* const token = credential.accessToken;
|
|
5565
5565
|
* ```
|
|
5566
5566
|
* @public
|
|
@@ -5835,7 +5835,7 @@ var SAMLAuthProvider = /** @class */ (function (_super) {
|
|
|
5835
5835
|
* // This is the signed-in user
|
|
5836
5836
|
* const user = result.user;
|
|
5837
5837
|
* // This gives you a Twitter Access Token and Secret.
|
|
5838
|
-
* const credential =
|
|
5838
|
+
* const credential = TwitterAuthProvider.credentialFromResult(result);
|
|
5839
5839
|
* const token = credential.accessToken;
|
|
5840
5840
|
* const secret = credential.secret;
|
|
5841
5841
|
* }
|
|
@@ -5850,7 +5850,7 @@ var SAMLAuthProvider = /** @class */ (function (_super) {
|
|
|
5850
5850
|
* // The signed-in user info.
|
|
5851
5851
|
* const user = result.user;
|
|
5852
5852
|
* // This gives you a Twitter Access Token and Secret.
|
|
5853
|
-
* const credential =
|
|
5853
|
+
* const credential = TwitterAuthProvider.credentialFromResult(result);
|
|
5854
5854
|
* const token = credential.accessToken;
|
|
5855
5855
|
* const secret = credential.secret;
|
|
5856
5856
|
* ```
|