I am unable to obtain refresh token after logging in via social connections, even if offline_access scope is included. The refresh_token grant type is enabled in application settings. I am having this issue with both the Android SDK and the iOS SDK.
A snippet of the code I am using to trigger social login:
Hello Dan, the only API i have is the management API which I cannot change. I don’t need to call any API actually, I just need the access token and refresh token for authentication purpose.
Thanks for the added info. It may be because you are sending an audience param with your request. You can omit that param if you aren’t requesting an access token for an API.
I tried doing that and it still wouldn’t return a refresh token (and an id token for that matter), it seems like it’s doing an implicit flow because when i tried to exclude implicit_flow from the list of grant types i get an error page indicating that implicit_flow isn’t enabled, even though afaik both native SDKs use PKCE flow. i know that using implicit grant i will not receive a refresh token, but i can’t figure out a way to use PKCE instead of implicit grant.