Skip to content

Commit 20116d5

Browse files
Add fix for handling invalid credentials error properly
1 parent e7eedab commit 20116d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/build/webauthnprebuiltui.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/recipe/webauthn/components/themes/signIn/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ function PasskeySignInTheme(props: SignInThemeProps): JSX.Element {
4040

4141
if (response.status === "INVALID_CREDENTIALS_ERROR") {
4242
setError("WEBAUTHN_PASSKEY_INVALID_CREDENTIALS_ERROR");
43-
return;
43+
return response;
4444
}
4545

4646
if (response.status === "FAILED_TO_AUTHENTICATE_USER") {
4747
setError("WEBAUTHN_PASSKEY_RECOVERABLE_ERROR");
48-
return;
48+
return response;
4949
}
5050

5151
return response;

0 commit comments

Comments
 (0)