-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth login .then delay #560
Labels
Comments
I experience similar issues while logging out. |
Me too, experiencing the same problem |
A trick to get around it:
or my litle hack:
Edit: found a better way from https://blog.khophi.co/angularfire2-authentication/
|
I was about to update to latest af2 is this still an issue and does tonymk's trick work ok? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calling AngularFire.auth(...).then(...) the user may still not be authenticated yet in the .then portion. After the user logs in I'm attempting a redirect in the .then portion but my AuthGuard still fails. If I then manually change the route (by changing my browser URL) the AuthGuard passes.
Here is my login function on my login page/component.
My AuthService (called above with this.auth.redirectAfterLogin()):
Here is my AuthGuard:
And my console.log output:
The text was updated successfully, but these errors were encountered: