You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question
There are some cases where I got null from checkAuthIncludingServer() function. I am using Angular 15. I am using the checkAuthIncludingServer() function in my guard ( canActivate ) and it hits the function every time I change the pages where I have this guard in place. I noticed when I do it fast or when there is token change I sometimes got null response from the function. I am not sure what causing it, but if someone has more detailed explanation I would appreciate that.
What I am thinking at this point that, while doing it fast and when it ask the authority get a new token and if I still moving through pages of my web application then it fails and unable to retrieve it at that point in time.
What Version of the library are you using?
15.0.2
Question
There are some cases where I got null from checkAuthIncludingServer() function. I am using Angular 15. I am using the checkAuthIncludingServer() function in my guard ( canActivate ) and it hits the function every time I change the pages where I have this guard in place. I noticed when I do it fast or when there is token change I sometimes got null response from the function. I am not sure what causing it, but if someone has more detailed explanation I would appreciate that.
What I am thinking at this point that, while doing it fast and when it ask the authority get a new token and if I still moving through pages of my web application then it fails and unable to retrieve it at that point in time.
My config
How I solved it at the moment is doing a work around like this
// this code runs in my auth guard to check for auth
I am open for suggestion and leads to understanding of the problem.
The text was updated successfully, but these errors were encountered: