New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/auth-compat

Package Overview
Dependencies
Maintainers
5
Versions
1262
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/auth-compat - npm Package Compare versions

Comparing version 0.0.900-exp.ab60f5fa9 to 0.0.900-exp.c778ccd9d

2

dist/firebase-auth.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app-compat"),require("@firebase/auth/internal"),require("@firebase/auth-types"),require("@firebase/app-types")):"function"==typeof define&&define.amd?define(["@firebase/app-compat","@firebase/auth/internal","@firebase/auth-types","@firebase/app-types"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).firebase,e.impl)}(this,function(K,Y){"use strict";try{(function(){function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=e(K),r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function u(e,u,s,a){return new(s=s||Promise)(function(r,t){function n(e){try{o(a.next(e))}catch(e){t(e)}}function i(e){try{o(a.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,i)}o((a=a.apply(e,u||[])).next())})}function s(r,n){var i,o,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(u=2&t[0]?o.return:t[0]?o.throw||((u=o.return)&&u.call(o),0):o.next)&&!(u=u.call(o,t[1])).done)return u;switch(o=0,u&&(t=[2&t[0],u.value]),t[0]){case 0:case 1:u=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(u=0<(u=s.trys).length&&u[u.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3])){s.label=t[1];break}if(6===t[0]&&s.label<u[1]){s.label=u[1],u=t;break}if(u&&s.label<u[2]){s.label=u[2],s.ops.push(t);break}u[2]&&s.ops.pop(),s.trys.pop();continue}t=n.call(r,s)}catch(e){t=[6,e],o=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function n(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function o(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}}function a(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function c(){return"indexedDB"in self&&null!=indexedDB}var p,t,h,d="FirebaseError",f=(p=Error,r(t=y,h=p),t.prototype=null===h?Object.create(h):(l.prototype=h.prototype,new l),y);function l(){this.constructor=t}function y(e,t,r){t=p.call(this,t)||this;return t.code=e,t.customData=r,t.name=d,Object.setPrototypeOf(t,y.prototype),Error.captureStackTrace&&Error.captureStackTrace(t,v.prototype.create),t}var v=(m.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n,i=t[0]||{},o=this.service+"/"+e,e=this.errors[e],e=e?(n=i,e.replace(b,function(e,t){var r=n[t];return null!=r?String(r):"<"+t+"?>"})):"Error",e=this.serviceName+": "+e+" ("+o+").";return new f(o,e,i)},m);function m(e,t,r){this.service=e,this.serviceName=t,this.errors=r}var b=/\{\$([^}]+)}/g,g=(P.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},P.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},P.prototype.setServiceProps=function(e){return this.serviceProps=e,this},P);function P(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}function I(){var e;return(null===(e=null===self||void 0===self?void 0:self.location)||void 0===e?void 0:e.protocol)||null}function E(){return(0<=(e=n()).indexOf("MSIE ")||0<=e.indexOf("Trident/"))&&11===(null===document||void 0===document?void 0:document.documentMode);var e}function R(e){return void 0===e&&(e=n()),E()||(void 0===(e=e)&&(e=n()),/Edge\/\d+/.test(e))}function A(){try{var e=self.localStorage,t=Y._generateEventId();if(e)return e.setItem(t,"1"),e.removeItem(t),!R()||c()}catch(e){return w()&&c()}return!1}function w(){return"undefined"!=typeof global&&"WorkerGlobalScope"in global&&"importScripts"in global}function O(){return("http:"===I()||"https:"===I()||"object"==typeof(t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0)&&void 0!==t.id||(void 0===e&&(e=n()),!("file:"!==I()&&"ionic:"!==I()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))))&&!(a()||o())&&A()&&!w();var e,t}var N={LOCAL:"LOCAL",NONE:"NONE",SESSION:"SESSION"};function S(i,o){return u(this,void 0,void 0,function(){var t,r,n;return s(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o];case 1:return t=e.sent(),[3,3];case 2:throw"auth/multi-factor-auth-required"===(r=e.sent()).code&&(r.resolver=Y.getMultiFactorResolver(i,r)),r;case 3:return[4,t];case 4:return n=e.sent(),r=n.operationType,n=n.user,[2,{operationType:r,credential:function(e){var t=e.providerId;if(!(o=e._tokenResponse))return null;if("temporaryProof"in o&&"phoneNumber"in o)return Y.PhoneAuthProvider.credentialFromResult(e);if(!t||"password"===t)return null;switch(t){case"google.com":return Y.GoogleAuthProvider.credentialFromResult(e);case"facebook.com":return Y.FacebookAuthProvider.credentialFromResult(e);case"github.com":return Y.GithubAuthProvider.credentialFromResult(e);case"twitter.com":return Y.TwitterAuthProvider.credentialFromResult(e);default:var r=o.oauthIdToken,n=o.oauthAccessToken,i=o.oauthTokenSecret,e=o.pendingToken,o=o.nonce;return n||i||r||e?new Y.OAuthProvider(t).credential({idToken:r,accessToken:n,rawNonce:o}):null}}(t),additionalUserInfo:Y.getAdditionalUserInfo(t),user:C.getOrCreate(n)}]}})})}function _(r,n){return u(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return[4,n];case 1:return[2,{verificationId:(t=e.sent()).verificationId,confirm:function(e){return S(r,t.confirm(e))}}]}})})}function k(e){return e.unwrap()}var C=(W.getOrCreate=function(e){return W.USER_MAP.has(e)||W.USER_MAP.set(e,new W(e)),W.USER_MAP.get(e)},W.prototype.delete=function(){return this.user.delete()},W.prototype.reload=function(){return this.user.reload()},W.prototype.toJSON=function(){return this.user.toJSON()},W.prototype.getIdTokenResult=function(e){return this.user.getIdTokenResult(e)},W.prototype.getIdToken=function(e){return this.user.getIdToken(e)},W.prototype.linkAndRetrieveDataWithCredential=function(e){return this.linkWithCredential(e)},W.prototype.linkWithCredential=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,S(this.auth,Y.linkWithCredential(this.user,t))]})})},W.prototype.linkWithPhoneNumber=function(t,r){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,_(this.auth,Y.linkWithPhoneNumber(this.user,t,k(r)))]})})},W.prototype.linkWithPopup=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,S(this.auth,Y.linkWithPopup(this.user,t,Y.browserPopupRedirectResolver))]})})},W.prototype.linkWithRedirect=function(e){return Y.linkWithRedirect(this.user,e,Y.browserPopupRedirectResolver)},W.prototype.reauthenticateAndRetrieveDataWithCredential=function(e){return this.reauthenticateWithCredential(e)},W.prototype.reauthenticateWithCredential=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,S(this.auth,Y.reauthenticateWithCredential(this.user,t))]})})},W.prototype.reauthenticateWithPhoneNumber=function(e,t){return _(this.auth,Y.reauthenticateWithPhoneNumber(this.user,e,k(t)))},W.prototype.reauthenticateWithPopup=function(e){return S(this.auth,Y.reauthenticateWithPopup(this.user,e,Y.browserPopupRedirectResolver))},W.prototype.reauthenticateWithRedirect=function(e){return Y.reauthenticateWithRedirect(this.user,e,Y.browserPopupRedirectResolver)},W.prototype.sendEmailVerification=function(e){return Y.sendEmailVerification(this.user,e)},W.prototype.unlink=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,Y.unlink(this.user,t)];case 1:return e.sent(),[2,this]}})})},W.prototype.updateEmail=function(e){return Y.updateEmail(this.user,e)},W.prototype.updatePassword=function(e){return Y.updatePassword(this.user,e)},W.prototype.updatePhoneNumber=function(e){return Y.updatePhoneNumber(this.user,e)},W.prototype.updateProfile=function(e){return Y.updateProfile(this.user,e)},W.prototype.verifyBeforeUpdateEmail=function(e,t){return Y.verifyBeforeUpdateEmail(this.user,e,t)},W.prototype.unwrap=function(){return this.user},Object.defineProperty(W.prototype,"emailVerified",{get:function(){return this.user.emailVerified},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"isAnonymous",{get:function(){return this.user.isAnonymous},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"metadata",{get:function(){return this.user.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"phoneNumber",{get:function(){return this.user.phoneNumber},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"providerData",{get:function(){return this.user.providerData},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"refreshToken",{get:function(){return this.user.refreshToken},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"tenantId",{get:function(){return this.user.tenantId},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"displayName",{get:function(){return this.user.displayName},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"email",{get:function(){return this.user.email},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"photoURL",{get:function(){return this.user.photoURL},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"providerId",{get:function(){return this.user.providerId},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"uid",{get:function(){return this.user.uid},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"auth",{get:function(){return this.user.auth},enumerable:!1,configurable:!0}),W.USER_MAP=new WeakMap,W);function W(e){this.user=e,this.multiFactor=Y.multiFactor(e)}var T="persistence",L=Y._assert,M=(Object.defineProperty(j.prototype,"currentUser",{get:function(){return this.auth.currentUser?C.getOrCreate(this.auth.currentUser):null},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"languageCode",{get:function(){return this.auth.languageCode},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"settings",{get:function(){return this.auth.settings},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"tenantId",{get:function(){return this.auth.tenantId},enumerable:!1,configurable:!0}),j.prototype.useDeviceLanguage=function(){this.auth.useDeviceLanguage()},j.prototype.signOut=function(){return this.auth.signOut()},j.prototype.useEmulator=function(e,t){this.auth.useEmulator(e,t)},j.prototype.applyActionCode=function(e){return Y.applyActionCode(this.auth,e)},j.prototype.checkActionCode=function(e){return Y.checkActionCode(this.auth,e)},j.prototype.confirmPasswordReset=function(e,t){return Y.confirmPasswordReset(this.auth,e,t)},j.prototype.createUserWithEmailAndPassword=function(t,r){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,S(this.auth,Y.createUserWithEmailAndPassword(this.auth,t,r))]})})},j.prototype.fetchProvidersForEmail=function(e){return this.fetchSignInMethodsForEmail(e)},j.prototype.fetchSignInMethodsForEmail=function(e){return Y.fetchSignInMethodsForEmail(this.auth,e)},j.prototype.isSignInWithEmailLink=function(e){return Y.isSignInWithEmailLink(this.auth,e)},j.prototype.getRedirectResult=function(){return u(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return L(O(),this.auth,"operation-not-supported-in-this-environment"),[4,Y.getRedirectResult(this.auth,Y.browserPopupRedirectResolver)];case 1:return(t=e.sent())?[2,S(this.auth,Promise.resolve(t))]:[2,{credential:null,user:null}]}})})},j.prototype.onAuthStateChanged=function(e,t,r){e=F(e,t,r),t=e.next,r=e.error,e=e.complete;return this.auth.onAuthStateChanged(t,r,e)},j.prototype.onIdTokenChanged=function(e,t,r){e=F(e,t,r),t=e.next,r=e.error,e=e.complete;return this.auth.onIdTokenChanged(t,r,e)},j.prototype.sendSignInLinkToEmail=function(e,t){return Y.sendSignInLinkToEmail(this.auth,e,t)},j.prototype.sendPasswordResetEmail=function(e,t){return Y.sendPasswordResetEmail(this.auth,e,t||void 0)},j.prototype.setPersistence=function(i){return u(this,void 0,void 0,function(){function t(e,t){var r,n;switch(r=e,n=i,Y._assert(Object.values(N).includes(n),r,"invalid-persistence-type"),a()?Y._assert(n!==N.SESSION,r,"unsupported-persistence-type"):o()?Y._assert(n===N.NONE,r,"unsupported-persistence-type"):w()?Y._assert(n===N.NONE||n===N.LOCAL&&c(),r,"unsupported-persistence-type"):Y._assert(n===N.NONE||A(),r,"unsupported-persistence-type"),t){case N.SESSION:return Y.browserSessionPersistence;case N.LOCAL:return c()?Y.indexedDBLocalPersistence:Y.browserLocalPersistence;case N.NONE:return Y.inMemoryPersistence;default:return Y._fail("argument-error",{appName:e.name})}}return s(this,function(e){return[2,this.auth.setPersistence(t(this.auth,i))]})})},j.prototype.signInAndRetrieveDataWithCredential=function(e){return this.signInWithCredential(e)},j.prototype.signInAnonymously=function(){return S(this.auth,Y.signInAnonymously(this.auth))},j.prototype.signInWithCredential=function(e){return S(this.auth,Y.signInWithCredential(this.auth,e))},j.prototype.signInWithCustomToken=function(e){return S(this.auth,Y.signInWithCustomToken(this.auth,e))},j.prototype.signInWithEmailAndPassword=function(e,t){return S(this.auth,Y.signInWithEmailAndPassword(this.auth,e,t))},j.prototype.signInWithEmailLink=function(e,t){return S(this.auth,Y.signInWithEmailLink(this.auth,e,t))},j.prototype.signInWithPhoneNumber=function(e,t){return _(this.auth,Y.signInWithPhoneNumber(this.auth,e,k(t)))},j.prototype.signInWithPopup=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return L(O(),this.auth,"operation-not-supported-in-this-environment"),[2,S(this.auth,Y.signInWithPopup(this.auth,t,Y.browserPopupRedirectResolver))]})})},j.prototype.signInWithRedirect=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return L(O(),this.auth,"operation-not-supported-in-this-environment"),this.savePersistenceForRedirect(),[2,Y.signInWithRedirect(this.auth,t,Y.browserPopupRedirectResolver)]})})},j.prototype.updateCurrentUser=function(e){return this.auth.updateCurrentUser(k(e))},j.prototype.verifyPasswordResetCode=function(e){return Y.verifyPasswordResetCode(this.auth,e)},j.prototype.unwrap=function(){return this.auth},j.prototype._delete=function(){return this.auth._delete()},j.prototype.savePersistenceForRedirect=function(){var e=D(),t=Y._persistenceKeyName(T,this.auth.config.apiKey,this.auth.name);null!=e&&e.sessionStorage&&e.sessionStorage.setItem(t,this.auth._getPersistence())},j.prototype.getPersistenceFromRedirect=function(){var e=D();if(null==e||!e.sessionStorage)return null;var t=Y._persistenceKeyName(T,this.auth.config.apiKey,this.auth.name);switch(e.sessionStorage.getItem(t)){case Y.inMemoryPersistence.type:return Y.inMemoryPersistence;case Y.indexedDBLocalPersistence.type:return Y.indexedDBLocalPersistence;case Y.browserSessionPersistence.type:return Y.browserSessionPersistence;case Y.browserLocalPersistence.type:return Y.browserLocalPersistence;default:return null}},j);function j(e,t){this.app=e,this.auth=t;var r=e.options.apiKey;this.auth._deleted||((t=(t=this.getPersistenceFromRedirect())?[t]:[]).push(Y.indexedDBLocalPersistence),t=t.map(Y._getInstance),L(r,"invalid-api-key",{appName:e.name}),this.auth._updateErrorMap(Y.debugErrorMap),this.auth._initializeWithPersistence(t,Y.browserPopupRedirectResolver))}function D(){return"undefined"!=typeof window?window:null}function F(e,t,r){var n=e;"function"!=typeof e&&(n=e.next,t=e.error,r=e.complete);var i=n;return{next:function(e){return i(e&&C.getOrCreate(e))},error:t,complete:r}}var x=(U.credential=function(e,t){return Y.PhoneAuthProvider.credential(e,t)},U.prototype.verifyPhoneNumber=function(e,t){return this.phoneProvider.verifyPhoneNumber(e,k(t))},U.prototype.unwrap=function(){return this.phoneProvider},U.PHONE_SIGN_IN_METHOD=Y.PhoneAuthProvider.PHONE_SIGN_IN_METHOD,U.PROVIDER_ID=Y.PhoneAuthProvider.PROVIDER_ID,U);function U(){this.providerId="phone",this.phoneProvider=new Y.PhoneAuthProvider(k(i.default.auth()))}var V=Y._assert,G=(B.prototype.clear=function(){this.verifier.clear()},B.prototype.render=function(){return this.verifier.render()},B.prototype.verify=function(){return this.verifier.verify()},B.prototype.unwrap=function(){return this.verifier},B);function B(e,t,r){var n;void 0===r&&(r=i.default.app()),V(null===(n=r.options)||void 0===n?void 0:n.apiKey,"invalid-api-key",{appName:r.name}),this.verifier=new Y.RecaptchaVerifier(e,t,k(r.auth())),this.type=this.verifier.type}var H;Y.registerAuth(o()?"Node":a()?"ReactNative":w()?"Worker":"Browser"),(H=i.default).INTERNAL.registerComponent(new g("auth",function(e){var t=e.getProvider("app").getImmediate(),e=e.getProvider("auth-exp").getImmediate();return new M(t,e)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"}},EmailAuthProvider:Y.EmailAuthProvider,FacebookAuthProvider:Y.FacebookAuthProvider,GithubAuthProvider:Y.GithubAuthProvider,GoogleAuthProvider:Y.GoogleAuthProvider,OAuthProvider:Y.OAuthProvider,PhoneAuthProvider:x,PhoneMultiFactorGenerator:Y.PhoneMultiFactorGenerator,RecaptchaVerifier:G,TwitterAuthProvider:Y.TwitterAuthProvider,Auth:{Persistence:N},AuthCredential:Y.AuthCredential}).setInstantiationMode("LAZY").setMultipleInstances(!1)),H.registerVersion("auth","0.0.900")}).apply(this,arguments)}catch(e){throw console.error(e),new Error("Cannot instantiate firebase-auth.js - be sure to load firebase-app.js first.")}});//# sourceMappingURL=firebase-auth.js.map
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app-compat"),require("@firebase/auth/internal"),require("@firebase/auth-types")):"function"==typeof define&&define.amd?define(["@firebase/app-compat","@firebase/auth/internal","@firebase/auth-types"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).firebase,e.impl)}(this,function(K,Y){"use strict";try{(function(){function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=e(K),r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function u(e,u,s,a){return new(s=s||Promise)(function(r,t){function n(e){try{o(a.next(e))}catch(e){t(e)}}function i(e){try{o(a.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,i)}o((a=a.apply(e,u||[])).next())})}function s(r,n){var i,o,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(u=2&t[0]?o.return:t[0]?o.throw||((u=o.return)&&u.call(o),0):o.next)&&!(u=u.call(o,t[1])).done)return u;switch(o=0,(t=u?[2&t[0],u.value]:t)[0]){case 0:case 1:u=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(u=0<(u=s.trys).length&&u[u.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3])){s.label=t[1];break}if(6===t[0]&&s.label<u[1]){s.label=u[1],u=t;break}if(u&&s.label<u[2]){s.label=u[2],s.ops.push(t);break}u[2]&&s.ops.pop(),s.trys.pop();continue}t=n.call(r,s)}catch(e){t=[6,e],o=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function n(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function o(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(e){return!1}}function a(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function c(){return"indexedDB"in self&&null!=indexedDB}var p,t,h,d="FirebaseError",f=(p=Error,r(t=y,h=p),t.prototype=null===h?Object.create(h):(l.prototype=h.prototype,new l),y);function l(){this.constructor=t}function y(e,t,r){t=p.call(this,t)||this;return t.code=e,t.customData=r,t.name=d,Object.setPrototypeOf(t,y.prototype),Error.captureStackTrace&&Error.captureStackTrace(t,v.prototype.create),t}var v=(m.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n,i=t[0]||{},o=this.service+"/"+e,e=this.errors[e],e=e?(n=i,e.replace(g,function(e,t){var r=n[t];return null!=r?String(r):"<"+t+"?>"})):"Error",e=this.serviceName+": "+e+" ("+o+").";return new f(o,e,i)},m);function m(e,t,r){this.service=e,this.serviceName=t,this.errors=r}var g=/\{\$([^}]+)}/g,b=(P.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},P.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},P.prototype.setServiceProps=function(e){return this.serviceProps=e,this},P);function P(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}function I(){var e;return(null===(e=null===self||void 0===self?void 0:self.location)||void 0===e?void 0:e.protocol)||null}function E(){return(0<=(e=n()).indexOf("MSIE ")||0<=e.indexOf("Trident/"))&&11===(null===document||void 0===document?void 0:document.documentMode);var e}function R(e){return void 0===e&&(e=n()),E()||(void 0===(e=e)&&(e=n()),/Edge\/\d+/.test(e))}function A(){try{var e=self.localStorage,t=Y._generateEventId();if(e)return e.setItem(t,"1"),e.removeItem(t),!R()||c()}catch(e){return w()&&c()}return!1}function w(){return"undefined"!=typeof global&&"WorkerGlobalScope"in global&&"importScripts"in global}function O(){return("http:"===I()||"https:"===I()||"object"==typeof(t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0)&&void 0!==t.id||(void 0===e&&(e=n()),!("file:"!==I()&&"ionic:"!==I()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))))&&!(a()||o())&&A()&&!w();var e,t}var N={LOCAL:"LOCAL",NONE:"NONE",SESSION:"SESSION"};function S(i,o){return u(this,void 0,void 0,function(){var t,r,n;return s(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o];case 1:return t=e.sent(),[3,3];case 2:throw"auth/multi-factor-auth-required"===(r=e.sent()).code&&(r.resolver=Y.getMultiFactorResolver(i,r)),r;case 3:return[4,t];case 4:return n=e.sent(),r=n.operationType,n=n.user,[2,{operationType:r,credential:function(e){var t=e.providerId,r=e._tokenResponse;if(!r)return null;if("temporaryProof"in r&&"phoneNumber"in r)return Y.PhoneAuthProvider.credentialFromResult(e);if(!t||"password"===t)return null;switch(t){case"google.com":return Y.GoogleAuthProvider.credentialFromResult(e);case"facebook.com":return Y.FacebookAuthProvider.credentialFromResult(e);case"github.com":return Y.GithubAuthProvider.credentialFromResult(e);case"twitter.com":return Y.TwitterAuthProvider.credentialFromResult(e);default:var n=r.oauthIdToken,i=r.oauthAccessToken,o=r.oauthTokenSecret,u=r.pendingToken,s=r.nonce;return i||o||n||u?new Y.OAuthProvider(t).credential({idToken:n,accessToken:i,rawNonce:s}):null}}(t),additionalUserInfo:Y.getAdditionalUserInfo(t),user:k.getOrCreate(n)}]}})})}function _(r,n){return u(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return[4,n];case 1:return[2,{verificationId:(t=e.sent()).verificationId,confirm:function(e){return S(r,t.confirm(e))}}]}})})}function C(e){return e.unwrap()}var k=(W.getOrCreate=function(e){return W.USER_MAP.has(e)||W.USER_MAP.set(e,new W(e)),W.USER_MAP.get(e)},W.prototype.delete=function(){return this.user.delete()},W.prototype.reload=function(){return this.user.reload()},W.prototype.toJSON=function(){return this.user.toJSON()},W.prototype.getIdTokenResult=function(e){return this.user.getIdTokenResult(e)},W.prototype.getIdToken=function(e){return this.user.getIdToken(e)},W.prototype.linkAndRetrieveDataWithCredential=function(e){return this.linkWithCredential(e)},W.prototype.linkWithCredential=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,S(this.auth,Y.linkWithCredential(this.user,t))]})})},W.prototype.linkWithPhoneNumber=function(t,r){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,_(this.auth,Y.linkWithPhoneNumber(this.user,t,C(r)))]})})},W.prototype.linkWithPopup=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,S(this.auth,Y.linkWithPopup(this.user,t,Y.browserPopupRedirectResolver))]})})},W.prototype.linkWithRedirect=function(e){return Y.linkWithRedirect(this.user,e,Y.browserPopupRedirectResolver)},W.prototype.reauthenticateAndRetrieveDataWithCredential=function(e){return this.reauthenticateWithCredential(e)},W.prototype.reauthenticateWithCredential=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,S(this.auth,Y.reauthenticateWithCredential(this.user,t))]})})},W.prototype.reauthenticateWithPhoneNumber=function(e,t){return _(this.auth,Y.reauthenticateWithPhoneNumber(this.user,e,C(t)))},W.prototype.reauthenticateWithPopup=function(e){return S(this.auth,Y.reauthenticateWithPopup(this.user,e,Y.browserPopupRedirectResolver))},W.prototype.reauthenticateWithRedirect=function(e){return Y.reauthenticateWithRedirect(this.user,e,Y.browserPopupRedirectResolver)},W.prototype.sendEmailVerification=function(e){return Y.sendEmailVerification(this.user,e)},W.prototype.unlink=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,Y.unlink(this.user,t)];case 1:return e.sent(),[2,this]}})})},W.prototype.updateEmail=function(e){return Y.updateEmail(this.user,e)},W.prototype.updatePassword=function(e){return Y.updatePassword(this.user,e)},W.prototype.updatePhoneNumber=function(e){return Y.updatePhoneNumber(this.user,e)},W.prototype.updateProfile=function(e){return Y.updateProfile(this.user,e)},W.prototype.verifyBeforeUpdateEmail=function(e,t){return Y.verifyBeforeUpdateEmail(this.user,e,t)},W.prototype.unwrap=function(){return this.user},Object.defineProperty(W.prototype,"emailVerified",{get:function(){return this.user.emailVerified},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"isAnonymous",{get:function(){return this.user.isAnonymous},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"metadata",{get:function(){return this.user.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"phoneNumber",{get:function(){return this.user.phoneNumber},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"providerData",{get:function(){return this.user.providerData},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"refreshToken",{get:function(){return this.user.refreshToken},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"tenantId",{get:function(){return this.user.tenantId},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"displayName",{get:function(){return this.user.displayName},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"email",{get:function(){return this.user.email},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"photoURL",{get:function(){return this.user.photoURL},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"providerId",{get:function(){return this.user.providerId},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"uid",{get:function(){return this.user.uid},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"auth",{get:function(){return this.user.auth},enumerable:!1,configurable:!0}),W.USER_MAP=new WeakMap,W);function W(e){this.user=e,this.multiFactor=Y.multiFactor(e)}var T="persistence",L=Y._assert,M=(Object.defineProperty(j.prototype,"emulatorConfig",{get:function(){return this.auth.emulatorConfig},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"currentUser",{get:function(){return this.auth.currentUser?k.getOrCreate(this.auth.currentUser):null},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"languageCode",{get:function(){return this.auth.languageCode},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"settings",{get:function(){return this.auth.settings},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"tenantId",{get:function(){return this.auth.tenantId},enumerable:!1,configurable:!0}),j.prototype.useDeviceLanguage=function(){this.auth.useDeviceLanguage()},j.prototype.signOut=function(){return this.auth.signOut()},j.prototype.useEmulator=function(e,t){Y.useAuthEmulator(this.auth,e,t)},j.prototype.applyActionCode=function(e){return Y.applyActionCode(this.auth,e)},j.prototype.checkActionCode=function(e){return Y.checkActionCode(this.auth,e)},j.prototype.confirmPasswordReset=function(e,t){return Y.confirmPasswordReset(this.auth,e,t)},j.prototype.createUserWithEmailAndPassword=function(t,r){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,S(this.auth,Y.createUserWithEmailAndPassword(this.auth,t,r))]})})},j.prototype.fetchProvidersForEmail=function(e){return this.fetchSignInMethodsForEmail(e)},j.prototype.fetchSignInMethodsForEmail=function(e){return Y.fetchSignInMethodsForEmail(this.auth,e)},j.prototype.isSignInWithEmailLink=function(e){return Y.isSignInWithEmailLink(this.auth,e)},j.prototype.getRedirectResult=function(){return u(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return L(O(),this.auth,"operation-not-supported-in-this-environment"),[4,Y.getRedirectResult(this.auth,Y.browserPopupRedirectResolver)];case 1:return(t=e.sent())?[2,S(this.auth,Promise.resolve(t))]:[2,{credential:null,user:null}]}})})},j.prototype.onAuthStateChanged=function(e,t,r){e=F(e,t,r),t=e.next,r=e.error,e=e.complete;return this.auth.onAuthStateChanged(t,r,e)},j.prototype.onIdTokenChanged=function(e,t,r){e=F(e,t,r),t=e.next,r=e.error,e=e.complete;return this.auth.onIdTokenChanged(t,r,e)},j.prototype.sendSignInLinkToEmail=function(e,t){return Y.sendSignInLinkToEmail(this.auth,e,t)},j.prototype.sendPasswordResetEmail=function(e,t){return Y.sendPasswordResetEmail(this.auth,e,t||void 0)},j.prototype.setPersistence=function(i){return u(this,void 0,void 0,function(){function t(e,t){var r,n;switch(r=e,n=i,Y._assert(Object.values(N).includes(n),r,"invalid-persistence-type"),a()?Y._assert(n!==N.SESSION,r,"unsupported-persistence-type"):o()?Y._assert(n===N.NONE,r,"unsupported-persistence-type"):w()?Y._assert(n===N.NONE||n===N.LOCAL&&c(),r,"unsupported-persistence-type"):Y._assert(n===N.NONE||A(),r,"unsupported-persistence-type"),t){case N.SESSION:return Y.browserSessionPersistence;case N.LOCAL:return c()?Y.indexedDBLocalPersistence:Y.browserLocalPersistence;case N.NONE:return Y.inMemoryPersistence;default:return Y._fail("argument-error",{appName:e.name})}}return s(this,function(e){return[2,this.auth.setPersistence(t(this.auth,i))]})})},j.prototype.signInAndRetrieveDataWithCredential=function(e){return this.signInWithCredential(e)},j.prototype.signInAnonymously=function(){return S(this.auth,Y.signInAnonymously(this.auth))},j.prototype.signInWithCredential=function(e){return S(this.auth,Y.signInWithCredential(this.auth,e))},j.prototype.signInWithCustomToken=function(e){return S(this.auth,Y.signInWithCustomToken(this.auth,e))},j.prototype.signInWithEmailAndPassword=function(e,t){return S(this.auth,Y.signInWithEmailAndPassword(this.auth,e,t))},j.prototype.signInWithEmailLink=function(e,t){return S(this.auth,Y.signInWithEmailLink(this.auth,e,t))},j.prototype.signInWithPhoneNumber=function(e,t){return _(this.auth,Y.signInWithPhoneNumber(this.auth,e,C(t)))},j.prototype.signInWithPopup=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return L(O(),this.auth,"operation-not-supported-in-this-environment"),[2,S(this.auth,Y.signInWithPopup(this.auth,t,Y.browserPopupRedirectResolver))]})})},j.prototype.signInWithRedirect=function(t){return u(this,void 0,void 0,function(){return s(this,function(e){return L(O(),this.auth,"operation-not-supported-in-this-environment"),this.savePersistenceForRedirect(),[2,Y.signInWithRedirect(this.auth,t,Y.browserPopupRedirectResolver)]})})},j.prototype.updateCurrentUser=function(e){return this.auth.updateCurrentUser(C(e))},j.prototype.verifyPasswordResetCode=function(e){return Y.verifyPasswordResetCode(this.auth,e)},j.prototype.unwrap=function(){return this.auth},j.prototype._delete=function(){return this.auth._delete()},j.prototype.savePersistenceForRedirect=function(){var e=D(),t=Y._persistenceKeyName(T,this.auth.config.apiKey,this.auth.name);null!=e&&e.sessionStorage&&e.sessionStorage.setItem(t,this.auth._getPersistence())},j.prototype.getPersistenceFromRedirect=function(){var e=D();if(null==e||!e.sessionStorage)return null;var t=Y._persistenceKeyName(T,this.auth.config.apiKey,this.auth.name);switch(e.sessionStorage.getItem(t)){case Y.inMemoryPersistence.type:return Y.inMemoryPersistence;case Y.indexedDBLocalPersistence.type:return Y.indexedDBLocalPersistence;case Y.browserSessionPersistence.type:return Y.browserSessionPersistence;case Y.browserLocalPersistence.type:return Y.browserLocalPersistence;default:return null}},j);function j(e,t){this.app=e,this.auth=t;var r=e.options.apiKey;this.auth._deleted||((t=(t=this.getPersistenceFromRedirect())?[t]:[]).push(Y.indexedDBLocalPersistence),t=t.map(Y._getInstance),L(r,"invalid-api-key",{appName:e.name}),this.auth._updateErrorMap(Y.debugErrorMap),this.auth._initializeWithPersistence(t,Y.browserPopupRedirectResolver))}function D(){return"undefined"!=typeof window?window:null}function F(e,t,r){var n=e;"function"!=typeof e&&(n=e.next,t=e.error,r=e.complete);var i=n;return{next:function(e){return i(e&&k.getOrCreate(e))},error:t,complete:r}}var x=(U.credential=function(e,t){return Y.PhoneAuthProvider.credential(e,t)},U.prototype.verifyPhoneNumber=function(e,t){return this.phoneProvider.verifyPhoneNumber(e,C(t))},U.prototype.unwrap=function(){return this.phoneProvider},U.PHONE_SIGN_IN_METHOD=Y.PhoneAuthProvider.PHONE_SIGN_IN_METHOD,U.PROVIDER_ID=Y.PhoneAuthProvider.PROVIDER_ID,U);function U(){this.providerId="phone",this.phoneProvider=new Y.PhoneAuthProvider(C(i.default.auth()))}var V=Y._assert,G=(B.prototype.clear=function(){this.verifier.clear()},B.prototype.render=function(){return this.verifier.render()},B.prototype.verify=function(){return this.verifier.verify()},B.prototype.unwrap=function(){return this.verifier},B);function B(e,t,r){var n;void 0===r&&(r=i.default.app()),V(null===(n=r.options)||void 0===n?void 0:n.apiKey,"invalid-api-key",{appName:r.name}),this.verifier=new Y.RecaptchaVerifier(e,t,C(r.auth())),this.type=this.verifier.type}var H;Y.registerAuth(o()?"Node":a()?"ReactNative":w()?"Worker":"Browser"),(H=i.default).INTERNAL.registerComponent(new b("auth",function(e){var t=e.getProvider("app-compat").getImmediate(),e=e.getProvider("auth-exp").getImmediate();return new M(t,e)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"}},EmailAuthProvider:Y.EmailAuthProvider,FacebookAuthProvider:Y.FacebookAuthProvider,GithubAuthProvider:Y.GithubAuthProvider,GoogleAuthProvider:Y.GoogleAuthProvider,OAuthProvider:Y.OAuthProvider,PhoneAuthProvider:x,PhoneMultiFactorGenerator:Y.PhoneMultiFactorGenerator,RecaptchaVerifier:G,TwitterAuthProvider:Y.TwitterAuthProvider,Auth:{Persistence:N},AuthCredential:Y.AuthCredential}).setInstantiationMode("LAZY").setMultipleInstances(!1)),H.registerVersion("auth","0.0.900")}).apply(this,arguments)}catch(e){throw console.error(e),new Error("Cannot instantiate firebase-auth.js - be sure to load firebase-app.js first.")}});//# sourceMappingURL=firebase-auth.js.map
import firebase from '@firebase/app-compat';
import { _generateEventId, _assert as _assert$2, getAdditionalUserInfo, getMultiFactorResolver, PhoneAuthProvider as PhoneAuthProvider$1, OAuthProvider, TwitterAuthProvider, GithubAuthProvider, FacebookAuthProvider, GoogleAuthProvider, linkWithCredential, linkWithPhoneNumber, linkWithPopup, browserPopupRedirectResolver, linkWithRedirect, reauthenticateWithCredential, reauthenticateWithPhoneNumber, reauthenticateWithPopup, reauthenticateWithRedirect, sendEmailVerification, unlink, updateEmail, updatePassword, updatePhoneNumber, updateProfile, verifyBeforeUpdateEmail, multiFactor, applyActionCode, checkActionCode, confirmPasswordReset, createUserWithEmailAndPassword, fetchSignInMethodsForEmail, isSignInWithEmailLink, getRedirectResult, sendSignInLinkToEmail, sendPasswordResetEmail, signInAnonymously, signInWithCredential, signInWithCustomToken, signInWithEmailAndPassword, signInWithEmailLink, signInWithPhoneNumber, signInWithPopup, signInWithRedirect, verifyPasswordResetCode, _persistenceKeyName, browserLocalPersistence, browserSessionPersistence, indexedDBLocalPersistence, inMemoryPersistence, _getInstance, debugErrorMap, _fail, RecaptchaVerifier as RecaptchaVerifier$1, registerAuth, EmailAuthProvider, PhoneMultiFactorGenerator, AuthCredential } from '@firebase/auth/internal';
import { _generateEventId, _assert as _assert$2, getAdditionalUserInfo, getMultiFactorResolver, PhoneAuthProvider as PhoneAuthProvider$1, OAuthProvider, TwitterAuthProvider, GithubAuthProvider, FacebookAuthProvider, GoogleAuthProvider, linkWithCredential, linkWithPhoneNumber, linkWithPopup, browserPopupRedirectResolver, linkWithRedirect, reauthenticateWithCredential, reauthenticateWithPhoneNumber, reauthenticateWithPopup, reauthenticateWithRedirect, sendEmailVerification, unlink, updateEmail, updatePassword, updatePhoneNumber, updateProfile, verifyBeforeUpdateEmail, multiFactor, useAuthEmulator, applyActionCode, checkActionCode, confirmPasswordReset, createUserWithEmailAndPassword, fetchSignInMethodsForEmail, isSignInWithEmailLink, getRedirectResult, sendSignInLinkToEmail, sendPasswordResetEmail, signInAnonymously, signInWithCredential, signInWithCustomToken, signInWithEmailAndPassword, signInWithEmailLink, signInWithPhoneNumber, signInWithPopup, signInWithRedirect, verifyPasswordResetCode, _persistenceKeyName, browserLocalPersistence, browserSessionPersistence, indexedDBLocalPersistence, inMemoryPersistence, _getInstance, debugErrorMap, _fail, RecaptchaVerifier as RecaptchaVerifier$1, registerAuth, EmailAuthProvider, PhoneMultiFactorGenerator, AuthCredential } from '@firebase/auth/internal';
import '@firebase/auth-types';
import { Component } from '@firebase/component';
import { __awaiter, __generator } from 'tslib';
import '@firebase/app-types';
import { isBrowserExtension, isReactNative, isNode, getUA, isIE, isIndexedDBAvailable } from '@firebase/util';

@@ -597,2 +596,9 @@

}
Object.defineProperty(Auth.prototype, "emulatorConfig", {
get: function () {
return this.auth.emulatorConfig;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Auth.prototype, "currentUser", {

@@ -636,3 +642,3 @@ get: function () {

Auth.prototype.useEmulator = function (url, options) {
this.auth.useEmulator(url, options);
useAuthEmulator(this.auth, url, options);
};

@@ -841,2 +847,4 @@ Auth.prototype.applyActionCode = function (code) {

this.providerId = 'phone';
// TODO: remove ts-ignore when moving types from auth-types to auth-compat
// @ts-ignore
this.phoneProvider = new PhoneAuthProvider$1(unwrap(firebase.auth()));

@@ -888,3 +896,6 @@ }

// eslint-disable-next-line @typescript-eslint/no-explicit-any
parameters, unwrap(app.auth()));
parameters,
// TODO: remove ts-ignore when moving types from auth-types to auth-compat
// @ts-ignore
unwrap(app.auth()));
this.type = this.verifier.type;

@@ -929,3 +940,3 @@ }

// getImmediate for FirebaseApp will always succeed
var app = container.getProvider('app').getImmediate();
var app = container.getProvider('app-compat').getImmediate();
var auth = container.getProvider('auth-exp').getImmediate();

@@ -932,0 +943,0 @@ return new Auth(app, auth);

import firebase from '@firebase/app-compat';
import { _generateEventId, _assert as _assert$2, getAdditionalUserInfo, PhoneAuthProvider as PhoneAuthProvider$1, OAuthProvider, TwitterAuthProvider, GithubAuthProvider, FacebookAuthProvider, GoogleAuthProvider, getMultiFactorResolver, multiFactor, linkWithCredential, linkWithPhoneNumber, linkWithPopup, browserPopupRedirectResolver, linkWithRedirect, reauthenticateWithCredential, reauthenticateWithPhoneNumber, reauthenticateWithPopup, reauthenticateWithRedirect, sendEmailVerification, unlink, updateEmail, updatePassword, updatePhoneNumber, updateProfile, verifyBeforeUpdateEmail, _getInstance, debugErrorMap, applyActionCode, checkActionCode, confirmPasswordReset, createUserWithEmailAndPassword, fetchSignInMethodsForEmail, isSignInWithEmailLink, getRedirectResult, sendSignInLinkToEmail, sendPasswordResetEmail, signInAnonymously, signInWithCredential, signInWithCustomToken, signInWithEmailAndPassword, signInWithEmailLink, signInWithPhoneNumber, signInWithPopup, signInWithRedirect, verifyPasswordResetCode, _persistenceKeyName, browserLocalPersistence, browserSessionPersistence, indexedDBLocalPersistence, inMemoryPersistence, _fail, RecaptchaVerifier as RecaptchaVerifier$1, registerAuth, EmailAuthProvider, PhoneMultiFactorGenerator, AuthCredential } from '@firebase/auth/internal';
import { _generateEventId, _assert as _assert$2, getAdditionalUserInfo, PhoneAuthProvider as PhoneAuthProvider$1, OAuthProvider, TwitterAuthProvider, GithubAuthProvider, FacebookAuthProvider, GoogleAuthProvider, getMultiFactorResolver, multiFactor, linkWithCredential, linkWithPhoneNumber, linkWithPopup, browserPopupRedirectResolver, linkWithRedirect, reauthenticateWithCredential, reauthenticateWithPhoneNumber, reauthenticateWithPopup, reauthenticateWithRedirect, sendEmailVerification, unlink, updateEmail, updatePassword, updatePhoneNumber, updateProfile, verifyBeforeUpdateEmail, _getInstance, debugErrorMap, useAuthEmulator, applyActionCode, checkActionCode, confirmPasswordReset, createUserWithEmailAndPassword, fetchSignInMethodsForEmail, isSignInWithEmailLink, getRedirectResult, sendSignInLinkToEmail, sendPasswordResetEmail, signInAnonymously, signInWithCredential, signInWithCustomToken, signInWithEmailAndPassword, signInWithEmailLink, signInWithPhoneNumber, signInWithPopup, signInWithRedirect, verifyPasswordResetCode, _persistenceKeyName, browserLocalPersistence, browserSessionPersistence, indexedDBLocalPersistence, inMemoryPersistence, _fail, RecaptchaVerifier as RecaptchaVerifier$1, registerAuth, EmailAuthProvider, PhoneMultiFactorGenerator, AuthCredential } from '@firebase/auth/internal';
import '@firebase/auth-types';
import { Component } from '@firebase/component';
import '@firebase/app-types';
import { isNode, isReactNative, isBrowserExtension, getUA, isIE, isIndexedDBAvailable } from '@firebase/util';

@@ -494,2 +493,5 @@

}
get emulatorConfig() {
return this.auth.emulatorConfig;
}
get currentUser() {

@@ -517,3 +519,3 @@ if (!this.auth.currentUser) {

useEmulator(url, options) {
this.auth.useEmulator(url, options);
useAuthEmulator(this.auth, url, options);
}

@@ -693,2 +695,4 @@ applyActionCode(code) {

this.providerId = 'phone';
// TODO: remove ts-ignore when moving types from auth-types to auth-compat
// @ts-ignore
this.phoneProvider = new PhoneAuthProvider$1(unwrap(firebase.auth()));

@@ -738,3 +742,6 @@ }

// eslint-disable-next-line @typescript-eslint/no-explicit-any
parameters, unwrap(app.auth()));
parameters,
// TODO: remove ts-ignore when moving types from auth-types to auth-compat
// @ts-ignore
unwrap(app.auth()));
this.type = this.verifier.type;

@@ -778,3 +785,3 @@ }

// getImmediate for FirebaseApp will always succeed
const app = container.getProvider('app').getImmediate();
const app = container.getProvider('app-compat').getImmediate();
const auth = container.getProvider('auth-exp').getImmediate();

@@ -781,0 +788,0 @@ return new Auth(app, auth);

@@ -8,3 +8,2 @@ 'use strict';

var tslib = require('tslib');
require('@firebase/app-types');
var util = require('@firebase/util');

@@ -604,2 +603,9 @@

}
Object.defineProperty(Auth.prototype, "emulatorConfig", {
get: function () {
return this.auth.emulatorConfig;
},
enumerable: false,
configurable: true
});
Object.defineProperty(Auth.prototype, "currentUser", {

@@ -643,3 +649,3 @@ get: function () {

Auth.prototype.useEmulator = function (url, options) {
this.auth.useEmulator(url, options);
impl.useAuthEmulator(this.auth, url, options);
};

@@ -848,2 +854,4 @@ Auth.prototype.applyActionCode = function (code) {

this.providerId = 'phone';
// TODO: remove ts-ignore when moving types from auth-types to auth-compat
// @ts-ignore
this.phoneProvider = new impl.PhoneAuthProvider(unwrap(firebase__default['default'].auth()));

@@ -895,3 +903,6 @@ }

// eslint-disable-next-line @typescript-eslint/no-explicit-any
parameters, unwrap(app.auth()));
parameters,
// TODO: remove ts-ignore when moving types from auth-types to auth-compat
// @ts-ignore
unwrap(app.auth()));
this.type = this.verifier.type;

@@ -936,3 +947,3 @@ }

// getImmediate for FirebaseApp will always succeed
var app = container.getProvider('app').getImmediate();
var app = container.getProvider('app-compat').getImmediate();
var auth = container.getProvider('auth-exp').getImmediate();

@@ -939,0 +950,0 @@ return new Auth(app, auth);

@@ -17,4 +17,3 @@ /**

*/
import { FirebaseApp } from '@firebase/app-types';
import { _FirebaseService } from "@firebase/app-types";
import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
import * as impl from "@firebase/auth/internal";

@@ -29,2 +28,3 @@ import * as compat from '@firebase/auth-types';

constructor(app: FirebaseApp, auth: impl.AuthImpl);
get emulatorConfig(): compat.EmulatorConfig | null;
get currentUser(): compat.User | null;

@@ -31,0 +31,0 @@ get languageCode(): string | null;

@@ -17,3 +17,3 @@ /**

*/
import { FirebaseApp } from '@firebase/app-types';
import { FirebaseApp } from '@firebase/app-compat';
import * as compat from '@firebase/auth-types';

@@ -20,0 +20,0 @@ import * as externs from "@firebase/auth-types";

{
"name": "@firebase/auth-compat",
"version": "0.0.900-exp.ab60f5fa9",
"version": "0.0.900-exp.c778ccd9d",
"private": false,

@@ -28,9 +28,8 @@ "description": "FirebaseAuth compatibility package that uses API style compatible with Firebase@7 and prior versions",

"peerDependencies": {
"@firebase/app-compat": "0.0.900-exp.ab60f5fa9",
"@firebase/app-types": "0.x"
"@firebase/app-compat": "0.0.900-exp.c778ccd9d"
},
"dependencies": {
"@firebase/auth-types": "0.0.900-exp.ab60f5fa9",
"@firebase/auth": "0.0.900-exp.ab60f5fa9",
"@firebase/component": "0.1.21",
"@firebase/auth-types": "0.0.900-exp.c778ccd9d",
"@firebase/auth": "0.0.900-exp.c778ccd9d",
"@firebase/component": "0.2.0",
"@firebase/util": "0.3.4",

@@ -37,0 +36,0 @@ "tslib": "^1.11.1"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc