Observable returned by AuthGuard does not wait until auth.loginWithRedirect finishes #659
Open
6 tasks done
Labels
bug
This points to a verified bug in the code
Checklist
Description
The current implementation of the AuthGuard returns an Observable from canActivate that is produced like this:
The logic of this is that
auth.loginWithRedirect
will perform a redirect for login when the user is not logged in. However,auth.loginWithRedirect
also returns an Observable which is ignored by this implementation. This means that the consumer of the guard will not wait forauth.loginWithRedirect
to complete.Reproduction
I did not try to reproduce effects of this issue.
Additional context
No response
auth0-angular version
2.2.3
Angular version
13
Which browsers have you tested in?
Chrome
The text was updated successfully, but these errors were encountered: