Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimplePromptCallback::onAuthenticationError doesn't return errorCode #124

Open
GPVSensing opened this issue May 25, 2020 · 1 comment
Open

Comments

@GPVSensing
Copy link

@OverRide
public void onAuthenticationError(int errorCode, @nonnull CharSequence errString) {
super.onAuthenticationError(errorCode, errString);
if (errorCode == BiometricPrompt.ERROR_NEGATIVE_BUTTON || errorCode == BiometricPrompt.ERROR_USER_CANCELED) {
WritableMap resultMap = new WritableNativeMap();
resultMap.putBoolean("success", false);
resultMap.putString("error", "User cancellation");
this.promise.resolve(resultMap);
} else {
this.promise.reject(errString.toString(), errString.toString());
Can we return errorCode also ??
}
}

@blueish9
Copy link

yes, I've created a PR for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants