I have implemented PKCE flow with @okta/okta-react library. After successful login it is storing accessToken and idToken in local-storage. But due an organizational policy, we need to store these in cookies only. How can I configure it to be stored in cookies instead of local-storage ?
I looked into okta-react official documentation and endless video tutorials, however I don't see any configuration/parameter by which I can configure where I want to store these tokens.
When you configure your OktaAuth client, you can set the tokenManager.storage to save the token in the sessionStorage:
Reference: https://github.com/okta/okta-auth-js