Credentials Cannot Be Saved as "Save Credentials" Prompt Closes Too Quickly
Last Updated:
Overview
Users logging in to the mobile application see a password manager dialog, but the browser window closes too quickly for interaction. This issue occurs with different Auth0 SDKs. This article provides a solution to enable users to view and interact with this dialog.
Applies To
- Mobile Applications
- Android
- iOS
- Browser
- Save Credentials
Cause
This is a known bug with ASWebAuthenticationSession.
Solution
A landing page (hosted by the user) can be added to the web authentication flow. This landing page displays a message similar to "You've successfully logged in!" and includes a "Done" or "Return to app" button. The user can then press this button after interacting with the "Save Password" prompt.
This can be achieved by using a post-login Action to redirect users to that landing page and resuming the authentication flow once they click the button or link. The documentation provides detailed instructions on how to redirect users from within an Action and how to resume the authentication flow:
NOTE: It is recommended to use a button or link instead of an automated redirection after a defined number of seconds. Certain policies in Chrome may block automatic redirection without user interaction to prevent spam websites from opening unwanted Apps automatically.
In Chrome for Android, pop-ups and redirections are blocked by default under Settings > Site Settings > Pop-ups and redirects. If this setting is disabled (default), the browser does not allow redirection. For more details, see Block or allow pop-ups in Chrome.