
petarl.98681 (Customer) asked a question.
Hello I'm trying to get a refresh token using authorization code flow.
my request to the authorize server includes an offline_access scope:
and after a successful authorization, when I exchange the code for tokens there is no refresh_token. Can you help me and and point out what I'm doing wrong?
Thanks in advance!

Hi Petar,
Can you please check to see if you have "Refresh Token" grant enabled under Admin >> Applications >> your OIDC app >> General tab >> Allowed grant types?
Dragos Gaftoneanu
Developer Support Engineer
Okta Global Customer Care
I am also experiencing the same issue, attached screenshot shows no Refresh Token grant type
Other relevant information https://github.com/manfredsteyer/angular-oauth2-oidc/issues/623
I'm also experiencing this issue for Single Page Apps (SPA) specifically. I see that the grant type is available however for web applications.
Hi Dragos Could you please confirm authorization code flow for SPA is not supporting refresh token
I am having the same issue with my SPA. The concern is a token could expire during user session and would have to re-login.
Hi,
Did this get resolved ?
Thanks
OKTA doesn't support refresh token for SPA. I did not checked recent changes if any
Thanks for the response Suneel. I did find this https://developer.okta.com/docs/guides/refresh-tokens/get-refresh-token/#get-a-new-access-token-id-token-silently-for-your-spa
But what I wanted to know was can this be achieved with Authorization code flow with pkce enabled for SPAs.
@dragos.gaftoneanu1.5193128389903699E12 (Okta, Inc.) Could you please provide your input ..