Skip to content

Commit e36f2db

Browse files
committed
More updates
1 parent ca42fa8 commit e36f2db

File tree

2 files changed

+1
-13
lines changed
  • packages
    • commerce-sdk-react/src/auth
    • template-retail-react-app/app/pages/login

2 files changed

+1
-13
lines changed

packages/commerce-sdk-react/src/auth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,4 +1578,4 @@ class Auth {
15781578
return tokenResponse
15791579
}
15801580
}
1581-
export default Auth
1581+
export default Auth

packages/template-retail-react-app/app/pages/login/index.jsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,6 @@ const Login = ({initialView = LOGIN_VIEW}) => {
129129
login: async (data) => {
130130
if (isPasswordless) {
131131
const email = data.email
132-
// Try WebAuthn first if enabled
133-
if (isWebAuthnEnabled) {
134-
console.log('WebAuthn enabled, trying to login with WebAuthn')
135-
try {
136-
await loginWithPasskey()
137-
// If successful, navigate to account
138-
navigate('/account')
139-
return
140-
} catch (error) {
141-
form.setError('global', {type: 'manual', message: formatMessage(API_ERROR_MESSAGE)})
142-
}
143-
}
144132
await handlePasswordlessLogin(email)
145133
return
146134
}

0 commit comments

Comments
 (0)