From f81e50ccb83e91d9e249d112b0f4524f0ff0406e Mon Sep 17 00:00:00 2001 From: Salakar Date: Sat, 12 May 2018 22:58:35 +0100 Subject: [PATCH] [android][auth] add `emailLink` support for internal getCredentialForProvider util --- .../java/io/invertase/firebase/auth/RNFirebaseAuth.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java b/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java index cf97534f..f6767a32 100644 --- a/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java +++ b/android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java @@ -1129,7 +1129,13 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule { } return PhoneAuthProvider.getCredential(authToken, authSecret); case "password": + // authToken = email + // authSecret = password return EmailAuthProvider.getCredential(authToken, authSecret); + case "emailLink": + // authToken = email + // authSecret = link + return EmailAuthProvider.getCredentialWithLink(authToken, authSecret); default: return null; }