
RojaP.77403 (Customer) asked a question.
https://www.npmjs.com/package/@okta/okta-auth-js
how to obtain the tokens for interaction code flow for single page web app
Strategies to obtain tokens: Web and native clients can obtain tokens using the authorization_code flow which uses a client secret stored in a secure location. SPA applications should use the PKCE flow which does not use a client secret.
I wanted to use the same approach as authorization_code but with the interaction code flow will it be possible I tried with idx.authenticate() for validate the user creds in SPA side and in authClient config adding the webapp server redirect uri. How to pass the interaction code to web app from SPA ?

Hello @RojaP.77403 (Customer) Thank you for reacting out to our Community!
Please take a look at the documentation below on hot to achieve this:
https://developer.okta.com/docs/concepts/interaction-code/#overview
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Hope this helps and if this answered your question, please mark this as Best Answer!