You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user declines the UI prompt for calls such as navigator.credentials.get(), what the promise rejects with depends on the browser:
Chrome: NotAllowedError: The operation either timed out or was not allowed
Firefox: AbortError: The operation was aborted.
Safari: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
I was hoping to able to catch any error and only show a message to the user if they didn't intentionally declined the prompt. At the moment, handling this use case seems a bit difficult.
The text was updated successfully, but these errors were encountered:
Proposed Change
If the user declines the UI prompt for calls such as
navigator.credentials.get()
, what the promise rejects with depends on the browser:I was hoping to able to catch any error and only show a message to the user if they didn't intentionally declined the prompt. At the moment, handling this use case seems a bit difficult.
The text was updated successfully, but these errors were encountered: