# How to test EOS\_LCT\_ExchangeCode ?

**URL:** <https://forums.unrealengine.com/t/how-to-test-eos-lct-exchangecode/886227>\
**Category:** Store Presence & Configuration\
**Tags:** epic-games-store, question\
**Created:** [April 11, 2023, 5:11pm UTC](https://forums.unrealengine.com/t/how-to-test-eos-lct-exchangecode/886227 "2023-04-11T17:11:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frozax.games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frozax.games](https://forums.unrealengine.com/u/frozax.games)\
**Post date:** [April 11, 2023, 5:11pm UTC](https://forums.unrealengine.com/t/how-to-test-eos-lct-exchangecode/886227/1 "2023-04-11T17:11:57Z")

</div>

Hi,

I’m wondering how to test the `EOS_LCT_ExchangeCode` workflow?  
I’m developing using the C SDK. My login workflow works using `EOS_LCT_Developer`. But I want to test using the ExchangeCode, running from the launcher.  
I’m using the function `EOS_Platform_CheckForLauncherAndRestart` which returns Success, but it doesn’t restart the game with the command line.  
There is indeed a store page available but not binairies yet, it this the reason? (I would like to debug it before uploading something).  
I can’t find any usage of `EOS_Platform_CheckForLauncherAndRestart` either in the samples.

Thanks for your help,

François.

---

<div class="post-metadata">

**Author:** ![andy.grove](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andy.grove/32/1223103_2.png) [@andy.grove](https://forums.unrealengine.com/u/andy.grove)\
**Post date:** [April 12, 2023, 8:21pm UTC](https://forums.unrealengine.com/t/how-to-test-eos-lct-exchangecode/886227/2 "2023-04-12T20:21:47Z")

</div>

Hi François,

You will need to upload a build and launch the game from the Epic Games Launcher to successfully complete ExchangeCode-based login. The Launcher will pass the exchange code to the game as the AUTH\_PASSWORD parameter, as detailed here:

> **[Auth Interface](https://dev.epicgames.com/docs/epic-account-services/auth/auth-interface#epic-games-launcher)**
>
> Interface to handle verification of user accounts, including login and logout functionality.

There are no means of generating a valid exchange code outside this flow, and CheckForLauncherAndRestart only functions when the executable being launched is tied to an existing installation in the Launcher Library. Please let me know if you have any questions on this!

Thanks,  
Andy

---

<div class="post-metadata">

**Author:** ![maestersid1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maestersid1/32/1145440_2.png) [@maestersid1](https://forums.unrealengine.com/u/maestersid1)\
**Post date:** [April 13, 2023, 1:14am UTC](https://forums.unrealengine.com/t/how-to-test-eos-lct-exchangecode/886227/3 "2023-04-13T01:14:58Z")

</div>

Correct, in order to test with the EOS\_LCT\_ExchangeCode flow, you will need to have uploaded a binary to the Store using the Build Patch Tool, as well as claimed a key on your account to have an entitlement for that library item. With self publishing tools, you should have access to the dev sandbox to be able to upload builds to.

Otherwise, the Developer authentication will be the closest experience to what exchange code flow would be like.
