1 | import { getApp, _getProvider } from '@firebase/app';
|
2 | import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-212c98e6.js';
|
3 | export { A as ActionCodeOperation, a3 as ActionCodeURL, v as AuthCredential, q as AuthErrorCodes, E as EmailAuthCredential, z as EmailAuthProvider, B as FacebookAuthProvider, F as FactorId, C as GithubAuthProvider, G as GoogleAuthProvider, w as OAuthCredential, D as OAuthProvider, O as OperationType, x as PhoneAuthCredential, P as ProviderId, H as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, R as applyActionCode, h as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, U as checkActionCode, Q as confirmPasswordReset, t as connectAuthEmulator, d as cordovaPopupRedirectResolver, W as createUserWithEmailAndPassword, n as debugErrorMap, m as deleteUser, a0 as fetchSignInMethodsForEmail, ab as getAdditionalUserInfo, a8 as getIdToken, a9 as getIdTokenResult, ad as getMultiFactorResolver, g as getRedirectResult, y as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, Z as isSignInWithEmailLink, K as linkWithCredential, ae as multiFactor, j as onAuthStateChanged, o as onIdTokenChanged, a4 as parseActionCodeURL, p as prodErrorMap, L as reauthenticateWithCredential, ac as reload, a1 as sendEmailVerification, N as sendPasswordResetEmail, Y as sendSignInLinkToEmail, s as setPersistence, I as signInAnonymously, J as signInWithCredential, M as signInWithCustomToken, X as signInWithEmailAndPassword, $ as signInWithEmailLink, l as signOut, aa as unlink, k as updateCurrentUser, a6 as updateEmail, a7 as updatePassword, a5 as updateProfile, u as useDeviceLanguage, a2 as verifyBeforeUpdateEmail, V as verifyPasswordResetCode } from './popup_redirect-212c98e6.js';
|
4 | import 'tslib';
|
5 | import '@firebase/util';
|
6 | import '@firebase/component';
|
7 | import '@firebase/logger';
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | function signInWithRedirect(auth, provider, resolver) {
|
26 | return _signInWithRedirect(auth, provider, resolver);
|
27 | }
|
28 | function reauthenticateWithRedirect(user, provider, resolver) {
|
29 | return _reauthenticateWithRedirect(user, provider, resolver);
|
30 | }
|
31 | function linkWithRedirect(user, provider, resolver) {
|
32 | return _linkWithRedirect(user, provider, resolver);
|
33 | }
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | function getAuth(app) {
|
52 | if (app === void 0) { app = getApp(); }
|
53 | var provider = _getProvider(app, 'auth');
|
54 | if (provider.isInitialized()) {
|
55 | return provider.getImmediate();
|
56 | }
|
57 | return initializeAuth(app, {
|
58 | persistence: indexedDBLocalPersistence,
|
59 | popupRedirectResolver: cordovaPopupRedirectResolver
|
60 | });
|
61 | }
|
62 | registerAuth("Cordova" );
|
63 |
|
64 | export { getAuth, linkWithRedirect, reauthenticateWithRedirect, signInWithRedirect };
|
65 |
|