Flash of login after the actual login


I am trying to create a dashboard App, where i show the login screen first and then the dashboard UI. Both these screens are quite different in terms of UI

So when the user clicks on the login button, I am taken to the universal login screen. I enter in my credential and I am redirected back

My login UI and redirected URL is setup as same in the app.So now after logging in I am seeing a flash of the signin page.

Here is what my code looks like

Let me know, what you think

Please include the following information in your post:

  • Which SDK this is regarding: e.g. auth0-node
  • SDK Version: e.g. 2.29.0
  • Platform Version: e.g. Node 12.19.0
  • Code Snippets/Error Messages/Supporting Details/Screenshots:

Is this a feature request or bug report? If so, please create an issue directly in the corresponding GitHub repo. The Community SDK category is for general discussion and support.

My question is that I want to avoid this flash of login screen when the redirection is getting triggered.

  1. So the flow should be display the Sign In screen
  2. Show the Auth0 login screen
  3. Show the dashboard login without seeing any flashes