If I clear the session from Okta Admin Console or by API call, the subscription to the authStateManager will always return isAuthenticated = true
until the token will be refreshed (it could take a while depending on the access token lifetime set in the authentication policy).
The result is that even if a user session has been cleared, the user is still authenticated both for the signin-widget and the okta-auth-js.
Is this the expected behaviour or it should be considered a bug?
With the Okta SDKs you should be calling the signout() function which will also clear tokens in the local token storage so isAuthenticated will become false.
The problem is that if application A and B are on two different subdomains of the same parent domain, then the token manager storage from a.domain.com won’t be cleared from b.domain.com when you signout. Do you have any solution for that? Thank you