After login browser message

I’m current working on a MAUI app. What I’m trying to accomplish is once a user enters in their one time code and is authenticated, I would like it to either close the browser tab or show a message to the user letting them know they can close the tab. Something like what you see when using MSAL. Right now, for Windows, Android, and iOS it just keeps the browser open so when they go back to their browser it looks like they are still trying to enter their one-time code.

Any thoughts? Maybe I have a setting messed up even in the dashboard?

Hi @aumudin

I believe the issue might reside in Auth0’s integration with MAUI applications. Unfortunately, there is no out-of-the-box solution regarding closing the tab automatically after authentication is performed by the user.

As an alternate solution to the issue at hand, you can either :

  • Update the login or signup partials in order to add a text box informing the user to close the browser after authentication is performed
  • Update the text prompts under Branding → Universal Login → Advanced → Custom text in order to inform the user to close the tab
  • Create and render a form using actions in which you inform the mbr to close the tab

Otherwise, you can contact the package owners on NutGet or open post on our Feedback page regarding the matter.

If you have any other questions, let me know!

Kind Regards,
Nik

The biggest issue ive run into withthose options is theres not a post successful 2fa action. Theirs post login but thats before 2fa. Right now the problem is they enter the one time 2fa code and click submit. It redirects them to the app properly but when they come back to the browser they still see their onetime code. If. For whatever reason they click submi again it shows them an error on the auth0 website.

We can ignore the Maui aspect as this behavior happens when just testing in the Auth0 dashboard.

Have any ideas off how to use a partial or action based on a successful 2fa attempt? Looking for something like you see when you use a. Custom 2fa template. After a succesful 2fa attempt it tells them its successful.