Hey,
I’m working on an API where we use Okta as identity provider.
I also provide social login via Microsoft Idp.
I have a client that needs to get hold of the social token in order to communicate directly to the Microsoft APIs.
I use the com.okta.sdk:okta-sdk-api library to fetch social tokens from Okta using the function
ListSocialAuthTokens.
It returns a list of tokens that may have token type access token or refresh token.
I thought that Okta would provide a refreshed token once the social access token expired, but it turns out it does not.
Question: How am I supposed to get a valid social access token from Microsoft (or any other idp) once the current one expires? I can’t find in the documentation how to use the refresh token if that’s the solution.