Solved. In case anyone is looking for a solution,
// Turn refresh_token on the okta site
// Add this to your startup code
.AddOktaMvc(new OktaMvcOptions
{
// Replace the Okta placeholders in appsettings.json with your Okta configuration.
OktaDomain = config.GetValue(“Okta:OktaDomain”),
ClientId = config.GetValue(“Okta:ClientId”),
ClientSecret = config.GetValue(“Okta:ClientSecret”),
AuthorizationServerId = config.GetValue(“Okta:AuthorizationServerId”),
Scope = new { “openid”, “offline_access” }
});
retrieve your refresh_token using
httpContext.GetTokenAsync(“refresh_token”)
// create a c# to simulate the
https://developer.okta.com/docs/guides/refresh-tokens/use-refresh-token/