@firebase/auth 1.7.5 → 1.7.6-canary.08bb87b9f
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/README.md +1 -1
- package/dist/auth-public.d.ts +4 -4
- package/dist/auth.d.ts +4 -4
- package/dist/browser-cjs/{index-22b094f0.js → index-f068d89b.js} +12 -49
- package/dist/browser-cjs/index-f068d89b.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +5 -5
- package/dist/browser-cjs/internal.js.map +1 -1
- package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/browser-cjs/src/core/providers/github.d.ts +4 -4
- package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/cordova/auth-cordova-public.d.ts +4 -4
- package/dist/cordova/auth-cordova.d.ts +4 -4
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +4 -4
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-31aa6bae.js → popup_redirect-c40b6c29.js} +13 -50
- package/dist/cordova/popup_redirect-c40b6c29.js.map +1 -0
- package/dist/cordova/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/cordova/src/core/providers/github.d.ts +4 -4
- package/dist/cordova/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/cordova/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/cordova/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/cordova/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/esm2017/{index-54738136.js → index-4398bf28.js} +12 -49
- package/dist/esm2017/index-4398bf28.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +6 -6
- package/dist/esm2017/internal.js.map +1 -1
- package/dist/esm2017/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/esm2017/src/core/providers/github.d.ts +4 -4
- package/dist/esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/esm5/{index-5a49f2c0.js → index-9c402d1b.js} +11 -48
- package/dist/esm5/index-9c402d1b.js.map +1 -0
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +6 -6
- package/dist/esm5/internal.js.map +1 -1
- package/dist/esm5/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/esm5/src/core/providers/github.d.ts +4 -4
- package/dist/esm5/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/esm5/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/esm5/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/esm5/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/index.webworker.esm5.js +8 -8
- package/dist/index.webworker.esm5.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +5 -32
- package/dist/node/internal.js.map +1 -1
- package/dist/node/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/node/src/core/providers/github.d.ts +4 -4
- package/dist/node/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/node/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/node/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/node/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/node/{totp-721eac4b.js → totp-c913d6a8.js} +8 -20
- package/dist/node/totp-c913d6a8.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +8 -35
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/node-esm/src/core/providers/github.d.ts +4 -4
- package/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/node-esm/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/node-esm/{totp-3675c216.js → totp-82daeec5.js} +9 -19
- package/dist/node-esm/totp-82daeec5.js.map +1 -0
- package/dist/rn/{index-d345c8d7.js → index-499673c8.js} +9 -20
- package/dist/rn/index-499673c8.js.map +1 -0
- package/dist/rn/index.js +2 -2
- package/dist/rn/index.js.map +1 -1
- package/dist/rn/internal.js +7 -34
- package/dist/rn/internal.js.map +1 -1
- package/dist/rn/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/rn/src/core/providers/github.d.ts +4 -4
- package/dist/rn/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/rn/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/rn/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/rn/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/src/core/providers/github.d.ts +4 -4
- package/dist/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +8 -35
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-6b27d5d8.js → register-7f3bef7e.js} +9 -20
- package/dist/web-extension-cjs/register-7f3bef7e.js.map +1 -0
- package/dist/web-extension-cjs/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/web-extension-cjs/src/core/providers/github.d.ts +4 -4
- package/dist/web-extension-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/web-extension-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/web-extension-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/web-extension-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/dist/web-extension-esm2017/auth-web-extension-public.d.ts +4 -4
- package/dist/web-extension-esm2017/auth-web-extension.d.ts +4 -4
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +10 -37
- package/dist/web-extension-esm2017/internal.js.map +1 -1
- package/dist/web-extension-esm2017/{register-83348242.js → register-e842a4a6.js} +10 -20
- package/dist/web-extension-esm2017/register-e842a4a6.js.map +1 -0
- package/dist/web-extension-esm2017/src/core/auth/auth_impl.d.ts +1 -1
- package/dist/web-extension-esm2017/src/core/providers/github.d.ts +4 -4
- package/dist/web-extension-esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
- package/dist/web-extension-esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
- package/dist/web-extension-esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
- package/dist/web-extension-esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
- package/package.json +6 -6
- package/dist/browser-cjs/index-22b094f0.js.map +0 -1
- package/dist/cordova/popup_redirect-31aa6bae.js.map +0 -1
- package/dist/esm2017/index-54738136.js.map +0 -1
- package/dist/esm5/index-5a49f2c0.js.map +0 -1
- package/dist/node/totp-721eac4b.js.map +0 -1
- package/dist/node-esm/totp-3675c216.js.map +0 -1
- package/dist/rn/index-d345c8d7.js.map +0 -1
- package/dist/web-extension-cjs/register-6b27d5d8.js.map +0 -1
- package/dist/web-extension-esm2017/register-83348242.js.map +0 -1
|
@@ -122,7 +122,7 @@ export declare class AuthImpl implements AuthInternal, _FirebaseService {
|
|
|
122
122
|
_getAppCheckToken(): Promise<string | undefined>;
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Method to be used to cast down to our private
|
|
125
|
+
* Method to be used to cast down to our private implementation of Auth.
|
|
126
126
|
* It will also handle unwrapping from the compat type if necessary
|
|
127
127
|
*
|
|
128
128
|
* @param auth Auth object passed in from developer
|
|
@@ -39,7 +39,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
39
39
|
* if (result) {
|
|
40
40
|
* // This is the signed-in user
|
|
41
41
|
* const user = result.user;
|
|
42
|
-
* // This gives you a
|
|
42
|
+
* // This gives you a GitHub Access Token.
|
|
43
43
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
44
44
|
* const token = credential.accessToken;
|
|
45
45
|
* }
|
|
@@ -54,7 +54,7 @@ import { BaseOAuthProvider } from './oauth';
|
|
|
54
54
|
*
|
|
55
55
|
* // The signed-in user info.
|
|
56
56
|
* const user = result.user;
|
|
57
|
-
* // This gives you a
|
|
57
|
+
* // This gives you a GitHub Access Token.
|
|
58
58
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
59
59
|
* const token = credential.accessToken;
|
|
60
60
|
* ```
|
|
@@ -67,9 +67,9 @@ export declare class GithubAuthProvider extends BaseOAuthProvider {
|
|
|
67
67
|
static readonly PROVIDER_ID: 'github.com';
|
|
68
68
|
constructor();
|
|
69
69
|
/**
|
|
70
|
-
* Creates a credential for
|
|
70
|
+
* Creates a credential for GitHub.
|
|
71
71
|
*
|
|
72
|
-
* @param accessToken -
|
|
72
|
+
* @param accessToken - GitHub access token.
|
|
73
73
|
*/
|
|
74
74
|
static credential(accessToken: string): OAuthCredential;
|
|
75
75
|
/**
|
|
@@ -56,7 +56,7 @@ export declare class Receiver {
|
|
|
56
56
|
* Unsubscribe an event handler from a particular event.
|
|
57
57
|
*
|
|
58
58
|
* @param eventType - Event name to unsubscribe from.
|
|
59
|
-
* @param eventHandler -
|
|
59
|
+
* @param eventHandler - Optional event handler, if none provided, unsubscribe all handlers on this event.
|
|
60
60
|
*
|
|
61
61
|
*/
|
|
62
62
|
_unsubscribe<T extends _ReceiverResponse, S extends _SenderRequest>(eventType: _EventType, eventHandler?: ReceiverHandler<T, S>): void;
|
|
@@ -20,7 +20,7 @@ import { AuthEvent, AuthEventType } from '../../model/popup_redirect';
|
|
|
20
20
|
/** Custom AuthEventManager that adds passive listeners to events */
|
|
21
21
|
export declare class CordovaAuthEventManager extends AuthEventManager {
|
|
22
22
|
private readonly passiveListeners;
|
|
23
|
-
private
|
|
23
|
+
private resolveInitialized;
|
|
24
24
|
private initPromise;
|
|
25
25
|
addPassiveListener(cb: (e: AuthEvent) => void): void;
|
|
26
26
|
removePassiveListener(cb: (e: AuthEvent) => void): void;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { Auth, User, Persistence } from '@firebase/auth';
|
|
18
18
|
import { WebDriver } from 'selenium-webdriver';
|
|
19
19
|
export declare const START_FUNCTION = "startAuth";
|
|
20
|
-
/** Helper
|
|
20
|
+
/** Helper wrapper around the WebDriver object */
|
|
21
21
|
export declare class AuthDriver {
|
|
22
22
|
webDriver: WebDriver;
|
|
23
23
|
start(browser: string): Promise<void>;
|
|
@@ -26,6 +26,6 @@ export declare class IdPPage {
|
|
|
26
26
|
fillEmail(email: string): Promise<void>;
|
|
27
27
|
fillDisplayName(displayName: string): Promise<void>;
|
|
28
28
|
fillScreenName(screenName: string): Promise<void>;
|
|
29
|
-
fillProfilePhoto(
|
|
29
|
+
fillProfilePhoto(profilePhoto: string): Promise<void>;
|
|
30
30
|
private fillInput;
|
|
31
31
|
}
|
|
@@ -156,7 +156,7 @@ function _debugErrorMap() {
|
|
|
156
156
|
["internal-error" /* AuthErrorCode.INTERNAL_ERROR */]: 'An internal AuthError has occurred.',
|
|
157
157
|
["invalid-app-credential" /* AuthErrorCode.INVALID_APP_CREDENTIAL */]: 'The phone verification request contains an invalid application verifier.' +
|
|
158
158
|
' The reCAPTCHA token response is either invalid or expired.',
|
|
159
|
-
["invalid-app-id" /* AuthErrorCode.INVALID_APP_ID */]: 'The mobile app identifier is not
|
|
159
|
+
["invalid-app-id" /* AuthErrorCode.INVALID_APP_ID */]: 'The mobile app identifier is not registered for the current project.',
|
|
160
160
|
["invalid-user-token" /* AuthErrorCode.INVALID_AUTH */]: "This user's credential isn't valid for this project. This can happen " +
|
|
161
161
|
"if the user's token has been tampered with, or if the user isn't for " +
|
|
162
162
|
'the project associated with this API key.',
|
|
@@ -2203,16 +2203,6 @@ function _isMobileBrowser(ua = getUA()) {
|
|
|
2203
2203
|
_isBlackBerry(ua) ||
|
|
2204
2204
|
/windows phone/i.test(ua) ||
|
|
2205
2205
|
_isIEMobile(ua));
|
|
2206
|
-
}
|
|
2207
|
-
function _isIframe() {
|
|
2208
|
-
try {
|
|
2209
|
-
// Check that the current window is not the top window.
|
|
2210
|
-
// If so, return true.
|
|
2211
|
-
return !!(window && window !== window.top);
|
|
2212
|
-
}
|
|
2213
|
-
catch (e) {
|
|
2214
|
-
return false;
|
|
2215
|
-
}
|
|
2216
2206
|
}
|
|
2217
2207
|
|
|
2218
2208
|
/**
|
|
@@ -3095,7 +3085,7 @@ class AuthImpl {
|
|
|
3095
3085
|
}
|
|
3096
3086
|
}
|
|
3097
3087
|
/**
|
|
3098
|
-
* Method to be used to cast down to our private
|
|
3088
|
+
* Method to be used to cast down to our private implementation of Auth.
|
|
3099
3089
|
* It will also handle unwrapping from the compat type if necessary
|
|
3100
3090
|
*
|
|
3101
3091
|
* @param auth Auth object passed in from developer
|
|
@@ -4778,7 +4768,7 @@ GoogleAuthProvider.PROVIDER_ID = "google.com" /* ProviderId.GOOGLE */;
|
|
|
4778
4768
|
* if (result) {
|
|
4779
4769
|
* // This is the signed-in user
|
|
4780
4770
|
* const user = result.user;
|
|
4781
|
-
* // This gives you a
|
|
4771
|
+
* // This gives you a GitHub Access Token.
|
|
4782
4772
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
4783
4773
|
* const token = credential.accessToken;
|
|
4784
4774
|
* }
|
|
@@ -4793,7 +4783,7 @@ GoogleAuthProvider.PROVIDER_ID = "google.com" /* ProviderId.GOOGLE */;
|
|
|
4793
4783
|
*
|
|
4794
4784
|
* // The signed-in user info.
|
|
4795
4785
|
* const user = result.user;
|
|
4796
|
-
* // This gives you a
|
|
4786
|
+
* // This gives you a GitHub Access Token.
|
|
4797
4787
|
* const credential = GithubAuthProvider.credentialFromResult(result);
|
|
4798
4788
|
* const token = credential.accessToken;
|
|
4799
4789
|
* ```
|
|
@@ -4804,9 +4794,9 @@ class GithubAuthProvider extends BaseOAuthProvider {
|
|
|
4804
4794
|
super("github.com" /* ProviderId.GITHUB */);
|
|
4805
4795
|
}
|
|
4806
4796
|
/**
|
|
4807
|
-
* Creates a credential for
|
|
4797
|
+
* Creates a credential for GitHub.
|
|
4808
4798
|
*
|
|
4809
|
-
* @param accessToken -
|
|
4799
|
+
* @param accessToken - GitHub access token.
|
|
4810
4800
|
*/
|
|
4811
4801
|
static credential(accessToken) {
|
|
4812
4802
|
return OAuthCredential._fromParams({
|
|
@@ -6921,7 +6911,7 @@ function multiFactor(user) {
|
|
|
6921
6911
|
}
|
|
6922
6912
|
|
|
6923
6913
|
var name = "@firebase/auth";
|
|
6924
|
-
var version = "1.7.
|
|
6914
|
+
var version = "1.7.6-canary.08bb87b9f";
|
|
6925
6915
|
|
|
6926
6916
|
/**
|
|
6927
6917
|
* @license
|
|
@@ -7332,5 +7322,5 @@ function _isEmptyString(input) {
|
|
|
7332
7322
|
return typeof input === 'undefined' || (input === null || input === void 0 ? void 0 : input.length) === 0;
|
|
7333
7323
|
}
|
|
7334
7324
|
|
|
7335
|
-
export { TwitterAuthProvider as $, ActionCodeOperation as A, updateCurrentUser as B, signOut as C, revokeAccessToken as D, deleteUser as E, FactorId as F, debugErrorMap as G, prodErrorMap as H, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as I, initializeAuth as J, connectAuthEmulator as K, AuthCredential as L, EmailAuthCredential as M, OAuthCredential as N, OperationType as O, PhoneAuthProvider as P, PhoneAuthCredential as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, inMemoryPersistence as U, EmailAuthProvider as V, FacebookAuthProvider as W, GoogleAuthProvider as X, GithubAuthProvider as Y, OAuthProvider as Z, SAMLAuthProvider as _, browserSessionPersistence as a, signInAnonymously as a0, signInWithCredential as a1, linkWithCredential as a2, reauthenticateWithCredential as a3, signInWithCustomToken as a4, sendPasswordResetEmail as a5, confirmPasswordReset as a6, applyActionCode as a7, checkActionCode as a8, verifyPasswordResetCode as a9, _fail as aA, debugAssert as aB, _persistenceKeyName as aC, _serverAppCurrentUserOperationNotSupportedError as aD, _castAuth as aE, FederatedAuthProvider as aF, BaseOAuthProvider as aG, _emulatorUrl as aH, _performApiRequest as aI, _isIOS as aJ, _isAndroid as aK, _isIOS7Or8 as aL, _createError as aM,
|
|
7336
|
-
//# sourceMappingURL=totp-
|
|
7325
|
+
export { TwitterAuthProvider as $, ActionCodeOperation as A, updateCurrentUser as B, signOut as C, revokeAccessToken as D, deleteUser as E, FactorId as F, debugErrorMap as G, prodErrorMap as H, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as I, initializeAuth as J, connectAuthEmulator as K, AuthCredential as L, EmailAuthCredential as M, OAuthCredential as N, OperationType as O, PhoneAuthProvider as P, PhoneAuthCredential as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, inMemoryPersistence as U, EmailAuthProvider as V, FacebookAuthProvider as W, GoogleAuthProvider as X, GithubAuthProvider as Y, OAuthProvider as Z, SAMLAuthProvider as _, browserSessionPersistence as a, signInAnonymously as a0, signInWithCredential as a1, linkWithCredential as a2, reauthenticateWithCredential as a3, signInWithCustomToken as a4, sendPasswordResetEmail as a5, confirmPasswordReset as a6, applyActionCode as a7, checkActionCode as a8, verifyPasswordResetCode as a9, _fail as aA, debugAssert as aB, _persistenceKeyName as aC, _serverAppCurrentUserOperationNotSupportedError as aD, _castAuth as aE, FederatedAuthProvider as aF, BaseOAuthProvider as aG, _emulatorUrl as aH, _performApiRequest as aI, _isIOS as aJ, _isAndroid as aK, _isIOS7Or8 as aL, _createError as aM, _isMobileBrowser as aN, _isIE10 as aO, UserImpl as aP, AuthImpl as aQ, _getClientVersion as aR, FetchProvider as aS, SAMLAuthCredential as aT, createUserWithEmailAndPassword as aa, signInWithEmailAndPassword as ab, sendSignInLinkToEmail as ac, isSignInWithEmailLink as ad, signInWithEmailLink as ae, fetchSignInMethodsForEmail as af, sendEmailVerification as ag, verifyBeforeUpdateEmail as ah, ActionCodeURL as ai, parseActionCodeURL as aj, updateProfile as ak, updateEmail as al, updatePassword as am, getIdToken as an, getIdTokenResult as ao, unlink as ap, getAdditionalUserInfo as aq, reload as ar, getMultiFactorResolver as as, multiFactor as at, _getInstance as au, _assert as av, _signInWithCredential as aw, _reauthenticate as ax, _link as ay, signInWithIdp 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, TotpSecret as n, getAuth as o, ProviderId as p, setPersistence as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, initializeRecaptchaConfig as t, updatePhoneNumber as u, validatePassword as v, onIdTokenChanged as w, beforeAuthStateChanged as x, onAuthStateChanged as y, useDeviceLanguage as z };
|
|
7326
|
+
//# sourceMappingURL=totp-82daeec5.js.map
|