File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
commerce-sdk-react/src/auth
template-retail-react-app/app/pages/login Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -1578,4 +1578,4 @@ class Auth {
15781578 return tokenResponse
15791579 }
15801580}
1581- export default Auth
1581+ export default Auth
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments