Start a session when using a refresh token

Hello, I’m using the okta sign in widget along with the okta auth js sdk, and I’m wondering if anyone knows how to start a session? My use case is basically that I have a refresh token and I"m able to generate access tokens with that, but when I check to see if the session exists, it comes up as false, even though I have a valid access token. A session only seems to exists when a user logs in with the sign in widget.

This is expected behavior. The Refresh Token can only be used to receive new tokens for the Client that was issued that refresh token and cannot be used to refresh or receive an Okta session.

If an Okta session is needed (e.g. for SSO) but the user’s session has expired or been invalidated (e.g. from logging out of Okta), then they will need to go through a full auth flow again to receive an Okta session (for an OIDC app, this means that you would need to make an /authorize request)