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
The module is working perfectly for me except for one part. The auth interceptor is properly triggered when switching between pages. However, some pages make two or three requests, causes two or three login modals to pop up in succession after each other.
I have already fixed this in my own code by simply making a var called loggingIn that when true will prevent more modals from appearing when there is already on open, but I think that something should be built into the module.
All that is needed is a check not to send out more auth-loginRequired events until auth-loginConfirmed is triggered. However, the requests will still need to function as they do now and be rerun when the confirm event is sent.
The text was updated successfully, but these errors were encountered:
The module is working perfectly for me except for one part. The auth interceptor is properly triggered when switching between pages. However, some pages make two or three requests, causes two or three login modals to pop up in succession after each other.
I have already fixed this in my own code by simply making a var called
loggingIn
that when true will prevent more modals from appearing when there is already on open, but I think that something should be built into the module.All that is needed is a check not to send out more
auth-loginRequired
events untilauth-loginConfirmed
is triggered. However, the requests will still need to function as they do now and be rerun when the confirm event is sent.The text was updated successfully, but these errors were encountered: