
5z7ym (5z7ym) asked a question.
when we call /authorize api, i am able to get Auth code, but when trying to invoke /token API always i am getting "The authorization code is invalid or has expired" this error.
"error": "invalid_grant",
"error_description": "The authorization code is invalid or has expired."

Hi Jakeer,
Thank you for reaching the Okta Community forum, Sami here with the Support team!
The issue that you are having is worth investigating in more detail, as there can be different causes for that.
I would suggest opening a ticket with us in order to get the necessary resources involved in order to find what the cause of the issue is.
Best regards,
Sami Attili
Technical Support Engineer
Okta Global Customer Care
Hi Jakeer,
Have you get chance to find the root cause of this issue?
Hi,
Did you get it working. I'm getting the same error even after tying it in Postman. When checked the Okta System Logs, I see that the authorization code is used only once.