# Knowledge Base: When integrating OpenID Connect with Epic Account Services, what can cause the "invalid\_client" error when exchanging the authorization code? 

**URL:** <https://forums.unrealengine.com/t/knowledge-base-when-integrating-openid-connect-with-epic-account-services-what-can-cause-the-invalid-client-error-when-exchanging-the-authorization-code/2858072>\
**Category:** Tutorial & Course Discussions\
**Tags:** epic-online-services\
**Created:** [November 18, 2026, 6:26am UTC](https://forums.unrealengine.com/t/knowledge-base-when-integrating-openid-connect-with-epic-account-services-what-can-cause-the-invalid-client-error-when-exchanging-the-authorization-code/2858072 "2026-11-18T06:26:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![itho](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/itho/32/1130265_2.png) [@itho](https://forums.unrealengine.com/u/itho)\
**Post date:** [November 18, 2026, 6:26am UTC](https://forums.unrealengine.com/t/knowledge-base-when-integrating-openid-connect-with-epic-account-services-what-can-cause-the-invalid-client-error-when-exchanging-the-authorization-code/2858072/1 "2026-11-18T06:26:05Z")

</div>

You may see the following “invalid\_client” error when attempting to exchange an authorization code as part of the OpenID Connect workflow: Ensure that your service is configured to encode the authorization header using base64 format, as this is a requirement of the token endpoint.  
  
[https://dev.epicgames.com/community/learning/knowledge-base/Jd2db/epic-online-services-when-integrating-openid-connect-with-epic-account-services-what-can-cause-the-invalid\_client-error-when-exchanging-the-authorization-code](https://dev.epicgames.com/community/learning/knowledge-base/Jd2db/epic-online-services-when-integrating-openid-connect-with-epic-account-services-what-can-cause-the-invalid_client-error-when-exchanging-the-authorization-code)
