File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
22
* just use index.ts
23
23
*/
24
24
25
- import { FirebaseApp , _getProvider } from '@firebase/app-exp' ;
25
+ import { FirebaseApp , getApp , _getProvider } from '@firebase/app-exp' ;
26
26
import { Auth } from './src/model/public_types' ;
27
27
import { indexedDBLocalPersistence } from './src/platform_browser/persistence/indexed_db' ;
28
28
@@ -48,7 +48,7 @@ export {
48
48
49
49
import { cordovaPopupRedirectResolver } from './src/platform_cordova/popup_redirect/popup_redirect' ;
50
50
51
- export function getAuth ( app : FirebaseApp ) : Auth {
51
+ export function getAuth ( app : FirebaseApp = getApp ( ) ) : Auth {
52
52
const provider = _getProvider ( app , 'auth-exp' ) ;
53
53
54
54
if ( provider . isInitialized ( ) ) {
Original file line number Diff line number Diff line change 24
24
25
25
import * as fetchImpl from 'node-fetch' ;
26
26
27
- import { FirebaseApp , _getProvider } from '@firebase/app-exp' ;
27
+ import { FirebaseApp , getApp , _getProvider } from '@firebase/app-exp' ;
28
28
import { Auth } from './src/model/public_types' ;
29
29
30
30
import { initializeAuth } from './src' ;
@@ -49,7 +49,7 @@ export {
49
49
ActionCodeOperation
50
50
} from './src/model/enum_maps' ;
51
51
52
- export function getAuth ( app : FirebaseApp ) : Auth {
52
+ export function getAuth ( app : FirebaseApp = getApp ( ) ) : Auth {
53
53
const provider = _getProvider ( app , 'auth-exp' ) ;
54
54
55
55
if ( provider . isInitialized ( ) ) {
Original file line number Diff line number Diff line change 24
24
25
25
import { AsyncStorage } from 'react-native' ;
26
26
27
- import { FirebaseApp , _getProvider } from '@firebase/app-exp' ;
27
+ import { FirebaseApp , getApp , _getProvider } from '@firebase/app-exp' ;
28
28
import { Auth } from './src/model/public_types' ;
29
29
30
30
import { initializeAuth } from './src' ;
@@ -39,7 +39,7 @@ export const reactNativeLocalPersistence = getReactNativePersistence(
39
39
AsyncStorage
40
40
) ;
41
41
42
- export function getAuth ( app : FirebaseApp ) : Auth {
42
+ export function getAuth ( app : FirebaseApp = getApp ( ) ) : Auth {
43
43
const provider = _getProvider ( app , 'auth-exp' ) ;
44
44
45
45
if ( provider . isInitialized ( ) ) {
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import { _getProvider , FirebaseApp } from '@firebase/app-exp' ;
18
+ import { _getProvider , FirebaseApp , getApp } from '@firebase/app-exp' ;
19
19
import { Auth } from './src/model/public_types' ;
20
20
21
21
import { AuthImpl } from './src/core/auth/auth_impl' ;
@@ -34,7 +34,7 @@ export { indexedDBLocalPersistence } from './src/platform_browser/persistence/in
34
34
35
35
registerAuth ( ClientPlatform . WORKER ) ;
36
36
37
- export function getAuth ( app : FirebaseApp ) : Auth {
37
+ export function getAuth ( app : FirebaseApp = getApp ( ) ) : Auth {
38
38
// Unlike the other environments, we need to explicitly check if indexedDb is
39
39
// available. That means doing the whole rigamarole
40
40
const auth = _getProvider (
You can’t perform that action at this time.
0 commit comments