Skip to content

Commit

Permalink
added verified field for indication whether verificationId and code r…
Browse files Browse the repository at this point in the history
…etrieval was successfull
  • Loading branch information
manuelsc committed Sep 24, 2018
1 parent 139740c commit ceaea35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/FirebasePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -741,9 +741,9 @@ public void onVerificationCompleted(PhoneAuthCredential credential) {
else if(value.length() >= 4 && value.length() <= 6) code = value;
}
}

returnResults.put("verificationId", verificationId != null ? verificationId : false);
returnResults.put("code", code != null ? code : false);
returnResults.put("verified", verificationId != null && code != null);
returnResults.put("verificationId", verificationId);
returnResults.put("code", code);
returnResults.put("instantVerification", true);
} catch(JSONException e){
Crashlytics.logException(e);
Expand Down

0 comments on commit ceaea35

Please sign in to comment.