Skip to content

Commit b86b7e3

Browse files
committed
fix(auth, other): correctly detect persistence set or not
the conditional here was inverted so would emit a warning about no persistence when it was set, but not emit one when unset
1 parent 0e3cf94 commit b86b7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/auth/lib/web/RNFBAuthModule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ let sessionId = 0;
227227
// Returns a cached Firestore instance.
228228
function getCachedAuthInstance(appName) {
229229
if (!instances[appName]) {
230-
if (!isMemoryStorage()) {
230+
if (isMemoryStorage()) {
231231
// Warn auth persistence is is disabled unless Async Storage implementation is provided.
232232
// eslint-disable-next-line no-console
233233
console.warn(

0 commit comments

Comments
 (0)