Problem routing redirect with @auth0/auth0-angular

Hello everyone.

I’ve a login created with the library @auth0/auth0-angular following the guide : Auth0 Angular SDK Quickstarts: Login

My login system needs queryParams in the loginWithRedirect method (such as allow_write and connection) and is working perfectly.
In the routing module, when I serve my app, I use the AuthGuard in order to make mandatory for the user to log in. The user logs-in and then it redirects to the /home page. User can now navigate and logs out perfectly.

My problem is when I try to write the URL and the user is not logged in , for example, /localhost/** , it redirects to a different login without my queryParams and it cant be filled by the user.

How can I solve it?

Thank you in advance.

1 Like

Hi @Totodile,

I apologize for the delayed response. Were you able to figure this out?

Otherwise, do you have an example of how you are passing your query parameters, what you are passing, and what you see in your browser?

How are you writing the URL (and what do you mean by that)?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.