Handle appState and redirect to dynamic url after successful login(Auth0 Angular)

In the Auth0 Spa JS, I could execute the auth0.handleRedirectCallback() function to return the appState from the auth0.loginWithRedirect({appState}) when it is passed in. This used to allow me to redirect to any url I wanted after a successful login or successfully completing an auth guard, into my application.

In the new auth0/angular library the auth0.handleRedirectCallback() is now private and can’t be used outside the class. Therefore, how is appState returned and used in the new implementation?

Thanks, Kav

1 Like