Skip to content

Commit 0aeda3c

Browse files
committed
Make the persistences default to inMemory for node
1 parent f90c1d0 commit 0aeda3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/auth/src/platform_node/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { _createError } from '../core/util/assert';
2121
import { FirebaseApp, getApp, _getProvider } from '@firebase/app';
2222
import { Auth } from '../model/public_types';
2323

24-
import { initializeAuth } from '..';
24+
import { initializeAuth, inMemoryPersistence } from '..';
2525
import { registerAuth } from '../core/auth/register';
2626
import { ClientPlatform } from '../core/util/version';
2727
import { AuthImpl } from '../core/auth/auth_impl';
@@ -76,9 +76,9 @@ class FailClass {
7676
}
7777
}
7878

79-
export const browserLocalPersistence = NOT_AVAILABLE_ERROR;
80-
export const browserSessionPersistence = NOT_AVAILABLE_ERROR;
81-
export const indexedDBLocalPersistence = NOT_AVAILABLE_ERROR;
79+
export const browserLocalPersistence = inMemoryPersistence;
80+
export const browserSessionPersistence = inMemoryPersistence;
81+
export const indexedDBLocalPersistence = inMemoryPersistence;
8282
export const browserPopupRedirectResolver = NOT_AVAILABLE_ERROR;
8383
export const PhoneAuthProvider = FailClass;
8484
export const signInWithPhoneNumber = fail;

0 commit comments

Comments
 (0)