Skip to content

Commit 9f9525d

Browse files
committed
Merge branch 'master' of github.com:fullstackreact/react-native-firestack
* 'master' of github.com:fullstackreact/react-native-firestack: Fix Android listenForAuth method to correctly check for user
2 parents e525569 + c811a3a commit 9f9525d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/io/fullstack/firestack/FirestackAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
7070
WritableMap msgMap = Arguments.createMap();
7171
msgMap.putString("eventName", "listenForAuth");
7272

73-
if (FirestackAuthModule.this.user != null) {
73+
if (firebaseAuth.getCurrentUser() != null) {
7474
WritableMap userMap = getUserMap();
7575

7676
msgMap.putBoolean("authenticated", true);

0 commit comments

Comments
 (0)