We actually recently added support for SPAs to be able to receive and use refresh tokens on the front-end via CORS requests, though the silent refresh that occurs without refresh tokens available would only fail if the user’s session with Okta had expired (which may be the case here) or is was not found in the browser (which is usually caused by 3rd party cookies being blocked). If so, using refresh tokens would divorce the Okta session lifetime from your ability to renew tokens for the user and should help keep your users logged in without needing to re-authenticate!
To use refresh token for a SPA, you will need to go to Admin → Settings → Features and enable “Refresh token rotation,” and then update your SPA to have “Refresh token” as an Allowed grant type.
More details about refresh token rotation can be found here.