Skip to content

Commit d39d1f4

Browse files
author
saleeh
committed
Facebook login fix android
1 parent 07aaee7 commit d39d1f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ public void onComplete(@NonNull Task<AuthResult> task) {
136136

137137
@ReactMethod
138138
public void signInWithProvider(final String provider, final String authToken, final String authSecret, final Callback callback) {
139+
if (provider.equals("facebook")) {
140+
this.facebookLogin(authToken,callback);
141+
} else
139142
// TODO
140143
FirestackUtils.todoNote(TAG, "signInWithProvider", callback);
141144
}
@@ -451,4 +454,4 @@ private WritableMap getUserMap() {
451454
}
452455

453456

454-
}
457+
}

0 commit comments

Comments
 (0)