Skip to content

Commit 099ae3b

Browse files
Add support for not requiring email for sign in
1 parent e83124b commit 099ae3b

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

lib/build/webauthnprebuiltui.js

Lines changed: 1 addition & 7 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: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,7 @@ function PasskeySignInTheme(props: SignInThemeProps): JSX.Element {
3434

3535
const callAPI = React.useCallback(
3636
async (_: APIFormField[], __: (id: string, value: string) => any) => {
37-
const email = prompt("Enter email ID");
38-
if (email === null) {
39-
alert("Please enter an email");
40-
return;
41-
}
42-
4337
const response = await props.recipeImplementation.authenticateCredentialWithSignIn({
44-
email: email,
4538
userContext,
4639
});
4740

0 commit comments

Comments
 (0)