-
Hello, 1- credentials are presented to the user in a modal dialog . If the user makes a gesture outside of the dialog, the dialog closes without resolving or rejecting the Promise and passe to the cache How i can solve this? Any help please
Thanx |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
There isn't really anything to solve here. The user didn't give you a credential, so you don't get a credential. Just add an if statement to your catch statement, looking for that particular error, and show the user an error message along the lines of "No credential selected". |
Beta Was this translation helpful? Give feedback.
-
i have any inforrmation to make if statement, for 2 cases, i have the same error. |
Beta Was this translation helpful? Give feedback.
-
Then you'll have to use an error message that's either vague enough for both, or explicitly mentions both possible causes. |
Beta Was this translation helpful? Give feedback.
-
@MimiaBena have you found a solution? How about something like "No valid credential received from device, please try again or choose another option.", conveying both either cancelling the dialogue or just not having any credentials and also providing a way forward for the user? |
Beta Was this translation helpful? Give feedback.
-
This behaviour is by design. We have strict privacy requirements on the API - it's designed to never leak information about the user - if they have a credential or not, unless the user confirms the auth. |
Beta Was this translation helpful? Give feedback.
This behaviour is by design. We have strict privacy requirements on the API - it's designed to never leak information about the user - if they have a credential or not, unless the user confirms the auth.