Ok. For those who met up the same problem:
previously I was using and auth-js library (and my flow was with client credentials). So, basically, on my start page I was performing request to loginWithRedirect.
I’ve change my start page logic to:
- check if await authClient.isAuthenticated(); return true;
- if yes, perform silent check auth (authClient.getTokenSilently({}))
- if not, then loginWithRedirect-> handleRedirectCallback.
Hope this will help someone!