
zjnwi (zjnwi) asked a question.
I am trying to integrate okta sso in my localhost web application. My okta dev application settings are following:
When I try to sso login, I am getting following error:
oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"The authorization code is invalid or has expired."}
System logs from dev console:

Hello Kshama,
This is Cezar with Okta support.
Please check the steps outlined in the following article and see if it solves your issue:
https://support.okta.com/help/s/article/The-authorization-code-is-invalid-or-has-expired
If it doesn't I recommend opening a case with us for further troubleshooting.
Thanks!