Getting invalid_grant Error Epic EHR launch

29 views
Skip to first unread message

Amit Kamble

unread,
Jul 28, 2025, 6:05:47 AMJul 28
to SMART on FHIR
We are in the process of integrating our application, with Epic’s SMART on FHIR APIs using the EHR launch flow. During the access token exchange step, we are consistently receiving the following error: {    "error": "invalid_grant",    "error_description": null  }
Details:
We have confirmed the following:
  • The authorization code is received via redirect correctly.
  • The code verifier matches the original value used to generate the code challenge.
  • The redirect URI used in the token request matches the one registered and used in the authorize request.
  • Client ID and other parameters are valid and properly encoded.
Despite this, the token exchange fails with the above error.
Reply all
Reply to author
Forward
0 new messages