
smuqe (smuqe) asked a question.
Hi! Right now we are using showSignInToGetTokens okta widget that handles the whole auth flow on our react web app. We need to add support for native electron app (to use the same login form) and need to send authorization code back to electron and to get access token from it. We saw that there is showSignInAndRedirect widget that can return authorization code in callback url . The problem is that even if we are getting authorization code in redirect callback url as query parameter we don't know how to get code_verifier that we also need to provide to our electron app for getting token on /token url. Is there any solution for that?

Hello @smuqe (smuqe)
Thanks for posting.
This GitHub project might be useful for the use case you are trying:
https://github.com/okta/okta-signin-widget
For more specific details applied to your specific use case feel free to post this question on our Okta Developer Forums: https://devforum.okta.com, this is a place for the Okta developer community to interact.
Let us know if this helps you.
Daniela Chavarria.
Okta Inc.