Using Okta widget for both web and native app

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?