
hndzr (hndzr) asked a question.
Issue with Okta Refresh Token in iOS Apps (Angular 17, Ionic 7)
We are encountering the following error when the app attempts to renew the token in the iOS app: OAuthError: The client specified not to prompt, but the user is not logged in.
We are using the following plugins in our Ionic Angular app (Angular 17, Ionic 7) for Okta authentication:
- @okta/okta-signin-widget
- @okta/okta-angular
- @okta/okta-auth-js
On web and Android apps, the okta-auth-js plugin automatically handles token renewal, successfully updating the access token. However, on iOS devices, this error persists.
Initially, we had an issue with blocking third-party cookies, which we resolved by using a custom domain.
Has anyone else encountered this issue with iOS devices? Any advice or solutions would be highly appreciated.

Hi @hndzr (hndzr) , Thank you for reaching out to the Okta Community!
This question is more appropriate for our dedicated Okta Developer Forum.
My advice would be to reach out via devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-custom/developer work).
In the meantime, I found a few other posts there reporting a similar error but they don't seem to be Angular 17/Ionic 7 specific.
https://devforum.okta.com/t/recent-upgrade-to-oie-receiving-client-specified-not-to-prompt-but-the-user-is-not-logged-in-after-successful-authn-and-authorize-calls/26003
https://devforum.okta.com/t/the-client-specified-not-to-prompt-but-the-client-app-requires-re-authentication-or-mfa/11165/9
https://devforum.okta.com/t/the-client-specified-not-to-prompt-but-the-client-app-requires-re-authentication-or-mfa/11165
https://devforum.okta.com/t/okta-the-client-specified-not-to-prompt-but-the-user-is-not-logged-in/18914/3
Regards.
--
Help others in the community by liking or hitting Select as Best if this response helped you.
Thanks, Mihai Negoita, for the suggestion! I have posted the issue on the Okta Developer Forum here: OAuthError: The client specified not to prompt, but the user is not logged in.