Then, you should request for the following scope: ‘offline_access’
I can’t reproduce the error you are getting though. So, let me know if that helps if you are still getting the error, what version of the widget are you using?
I configured the widget for response_mode: query but the request the widget builds has the param set to response_mode=okta_post_message. If I submit that request with response_mode=query I get an auth code but no refresh token. I’ve added offline_access to the scopes, but still no refresh token returns. Is there api to exchange the auth code for a refresh token?
That helps, it builds the request with response_mode=query, now. However the response is a code and state. How can I use these to get a refresh token? The sign-in widget doc says I can exchange the code for a refresh token but I can’t find the api to use for that.
I used the auth code and grant_type authorization_code in the post below. The offline_access scope is configured on the auth server on okta admin. I got all the goodies back that I need: