Flask Windows `invalid_client` Error

Hello, I am trying to set up a web application to use okta authentication following the example on GitHub. The okta App itself is associated with our own organization.

I ran the Flask okta application with the following command:

flask --app myapp run --host --port 8080 --debug

I ran the same application on both my Mac and Windows, the Mac works fine, but Windows gave the below error. I got the okta login page for both OS, but during the callback redirect, Windows gave the below error, but Mac works fine. Wanted to see if there are any special configuration needed for Windows? I tried allow Python through the FW, and disabling the FW, but nothing worked.

{'error': 'invalid_client', 'error_description': 'The client secret supplied for a confidential client is invalid.'}