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 clearHashAfterLogin triggers even in the event of a silentRefresh, which if you are using the HashLocationStrategy actually resets the route and redirects the user to the main page of your application every time the app does a silentRefresh in the background.
The text was updated successfully, but these errors were encountered:
Personally I use a workaround, I set clearHashAfterLogin=false after successful login.
this.oauthService.tryLogin({});this.oauthService.events.filter((e)=>e.type==='token_received').flatMap(()=>{constclaims=this.oauthService.getIdentityClaims();if(claims){// to prevent problem with silent refresh// this generate a redirect to home page.this.oauthService.clearHashAfterLogin=false;}});
The clearHashAfterLogin triggers even in the event of a silentRefresh, which if you are using the HashLocationStrategy actually resets the route and redirects the user to the main page of your application every time the app does a silentRefresh in the background.
The text was updated successfully, but these errors were encountered: