okta-oidc-ios icon indicating copy to clipboard operation
okta-oidc-ios copied to clipboard

user interaction when refresh token expired

Open robin202205 opened this issue 2 years ago • 1 comments

Describe the feature request?

when I have not used the app for 7 days,I call oktaAuthStateManager.renew, i get error: "Error fetching fresh tokens: invalid_grant: The refresh token is invalid or expired.". but this is a string, not a error code. I hope will have user interaction in the situation, How can i do it?

New or Affected Resource(s)

user interaction when refresh token expired

Provide a documentation link

No response

Additional Information?

No response

robin202205 avatar Oct 21 '22 06:10 robin202205

Hi @robin202205, I agree that error messages within this SDK can be difficult to introspect. We've built a replacement for this SDK named okta-mobile-swift which improves on a lot of these sorts of issues. I wrote an article summarizing the features and improvements in the new SDK, which you could check out to see if it suits your needs.

AlexAstroCat avatar Nov 07 '22 16:11 AlexAstroCat