File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2222 * just use index.ts
2323 */
2424
25- import { FirebaseApp , _getProvider } from '@firebase/app-exp' ;
25+ import { FirebaseApp , getApp , _getProvider } from '@firebase/app-exp' ;
2626import { Auth } from './src/model/public_types' ;
2727import { indexedDBLocalPersistence } from './src/platform_browser/persistence/indexed_db' ;
2828
@@ -48,7 +48,7 @@ export {
4848
4949import { cordovaPopupRedirectResolver } from './src/platform_cordova/popup_redirect/popup_redirect' ;
5050
51- export function getAuth ( app : FirebaseApp ) : Auth {
51+ export function getAuth ( app : FirebaseApp = getApp ( ) ) : Auth {
5252 const provider = _getProvider ( app , 'auth-exp' ) ;
5353
5454 if ( provider . isInitialized ( ) ) {
Original file line number Diff line number Diff line change 2424
2525import * as fetchImpl from 'node-fetch' ;
2626
27- import { FirebaseApp , _getProvider } from '@firebase/app-exp' ;
27+ import { FirebaseApp , getApp , _getProvider } from '@firebase/app-exp' ;
2828import { Auth } from './src/model/public_types' ;
2929
3030import { initializeAuth } from './src' ;
@@ -49,7 +49,7 @@ export {
4949 ActionCodeOperation
5050} from './src/model/enum_maps' ;
5151
52- export function getAuth ( app : FirebaseApp ) : Auth {
52+ export function getAuth ( app : FirebaseApp = getApp ( ) ) : Auth {
5353 const provider = _getProvider ( app , 'auth-exp' ) ;
5454
5555 if ( provider . isInitialized ( ) ) {
Original file line number Diff line number Diff line change 2424
2525import { AsyncStorage } from 'react-native' ;
2626
27- import { FirebaseApp , _getProvider } from '@firebase/app-exp' ;
27+ import { FirebaseApp , getApp , _getProvider } from '@firebase/app-exp' ;
2828import { Auth } from './src/model/public_types' ;
2929
3030import { initializeAuth } from './src' ;
@@ -39,7 +39,7 @@ export const reactNativeLocalPersistence = getReactNativePersistence(
3939 AsyncStorage
4040) ;
4141
42- export function getAuth ( app : FirebaseApp ) : Auth {
42+ export function getAuth ( app : FirebaseApp = getApp ( ) ) : Auth {
4343 const provider = _getProvider ( app , 'auth-exp' ) ;
4444
4545 if ( provider . isInitialized ( ) ) {
Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717
18- import { _getProvider , FirebaseApp } from '@firebase/app-exp' ;
18+ import { _getProvider , FirebaseApp , getApp } from '@firebase/app-exp' ;
1919import { Auth } from './src/model/public_types' ;
2020
2121import { AuthImpl } from './src/core/auth/auth_impl' ;
@@ -34,7 +34,7 @@ export { indexedDBLocalPersistence } from './src/platform_browser/persistence/in
3434
3535registerAuth ( ClientPlatform . WORKER ) ;
3636
37- export function getAuth ( app : FirebaseApp ) : Auth {
37+ export function getAuth ( app : FirebaseApp = getApp ( ) ) : Auth {
3838 // Unlike the other environments, we need to explicitly check if indexedDb is
3939 // available. That means doing the whole rigamarole
4040 const auth = _getProvider (
You can’t perform that action at this time.
0 commit comments