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
Ths need for this comes when someone is using us only for session recipe and another auth provider for login. In this case, the other auth provider would do a callback to this user's API layer directly which would create a new supertokens session.
In this case, the httpOnly session cookies would be correctly set, but since there are no frontend interceptors (since the auth provider made this API call directly), the frontend would either:
Not have sIRTFrontend
Have sIRTFrontend with the value of remove.
In case of (1), when the frontend would call doesSessionExist, it would call the refresh API and it would all work fine. But in case of (2), doesSessionExist would return false. The only way to then make the frontend realise that the session actually exists is to manually clear the sIRTFrontend cookie and then call doesSessionExist.
So we should expose a function that does this - something like doesSessionExistCheckUsingBackendCall, and then document that accordingly.
The text was updated successfully, but these errors were encountered:
Ths need for this comes when someone is using us only for session recipe and another auth provider for login. In this case, the other auth provider would do a callback to this user's API layer directly which would create a new supertokens session.
In this case, the httpOnly session cookies would be correctly set, but since there are no frontend interceptors (since the auth provider made this API call directly), the frontend would either:
remove
.In case of (1), when the frontend would call
doesSessionExist
, it would call the refresh API and it would all work fine. But in case of (2),doesSessionExist
would returnfalse
. The only way to then make the frontend realise that the session actually exists is to manually clear thesIRTFrontend
cookie and then calldoesSessionExist
.So we should expose a function that does this - something like
doesSessionExistCheckUsingBackendCall
, and then document that accordingly.The text was updated successfully, but these errors were encountered: