File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 158158 try {
159159 passkeyData = await getPasskey ();
160160 } catch (error ) {
161- const name = (error && (error .name || error .constructor ?.name )) || ' ' ;
162- const message = (error && error .message ) || ' ' ;
163- if (name === ' AbortError' ) {
164- // Aborted intentionally; no user-facing error needed
165- return null ;
166- } else if (name === ' InvalidStateError' || name === ' OperationError' || / pending/ i .test (message )) {
167- adminforth .alert ({ message: t (' Another security prompt is already open. Please try again.' ), variant: ' warning' });
168- onCancel ();
169- return null ;
170- } else if (name === ' NotAllowedError' ) {
171- adminforth .alert ({ message: t (' The operation either timed out or was not allowed' ), variant: ' warning' });
172- onCancel ();
173- return null ;
174- } else {
175- adminforth .alert ({message: t (` Error during authentication: ${error } ` ), variant: ' warning' });
176- onCancel ();
177- return null ;
178- }
161+ onCancel ();
162+ return null ;
179163 }
180164 modelShow .value = false ;
181165 const dataToReturn = {
You can’t perform that action at this time.
0 commit comments