# How to test login and EOS\_InvalidUser ?

**URL:** <https://forums.unrealengine.com/t/how-to-test-login-and-eos-invaliduser/1164308>\
**Category:** Store Presence & Configuration\
**Tags:** epic-games-store, question\
**Created:** [May 13, 2023, 8:27am UTC](https://forums.unrealengine.com/t/how-to-test-login-and-eos-invaliduser/1164308 "2023-05-13T08:27:31Z")\
**Posts on this page:** 5\
**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:** [May 13, 2023, 8:27am UTC](https://forums.unrealengine.com/t/how-to-test-login-and-eos-invaliduser/1164308/1 "2023-05-13T08:27:31Z")

</div>

Hi,

I’m trying to test the login workflow and I can’t find a way to have EOS\_InvalidUser returned in the login callback.  
Do we have to use external accounts (I’ve had InvalidUser in this case)? Can we test this using the DevAuthPortal?

Thanks!

PS: Additional question slightly off-topic, is there a way to test the token renewal without waiting for 60 (!) minutes? (see [Epic Games Store Testing Guide | Epic Online Services Developer](https://dev.epicgames.com/docs/epic-games-store/testing-guide)) Maybe a debug mode somewhere?

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [May 16, 2023, 1:16pm UTC](https://forums.unrealengine.com/t/how-to-test-login-and-eos-invaliduser/1164308/2 "2023-05-16T13:16:21Z")

</div>

Hello,

Are you referring to EOS\_InvalidUser being returned by EOS\_Auth\_Login when signing in with an external account that isn’t linked? Or, are you referring to EOS\_InvalidUser being returned by EOS\_Connect\_Login the first time a player logs in (no PUID for this player)? I’m assuming EOS\_Connect\_Login as you mentioned a 60 minutes token (EOS\_Auth\_Login is 120), but I’ll answer both!

If you’re referring to EOS\_Auth\_Login, you will need to login using an external account (Steam, etc…) that isn’t linked to an Epic Games Account… When EOS\_InvalidUser is returned you’ll need to call EOS\_Auth\_LinkAccount.

If you’re referring to EOS\_Connect\_Login, you will need to login using any account (Epic Games, Steam, etc…) for the first time to your product. As there would be no Product User Id (PUID) for this account, EOS\_InvalidUser will be returned. At this point you can call EOS\_Connect\_CreateUser using the ContinuanceToken. If a player has already played the game and is logging in with another external account, EOS\_InvalidUser is also returned and in this case you would want to have them login with the account they played the game with in the past and call EOS\_Connect\_LinkAccount.

The token renewal time is hardcoded.

Thanks,  
Seb

---

<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:** [May 16, 2023, 2:10pm UTC](https://forums.unrealengine.com/t/how-to-test-login-and-eos-invaliduser/1164308/3 "2023-05-16T14:10:40Z")

</div>

Thanks Seb for your reply,  
Is there also a way to remove the PUID of an account in Dev/Stage to avoid creating a new account everytime we want to test the workflow?

---

<div class="post-metadata">

**Author:** ![SebBergy2.0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sebbergy2.0/32/1214708_2.png) [@SebBergy2.0](https://forums.unrealengine.com/u/SebBergy2.0)\
**Post date:** [May 16, 2023, 5:03pm UTC](https://forums.unrealengine.com/t/how-to-test-login-and-eos-invaliduser/1164308/4 "2023-05-16T17:03:46Z")

</div>

The account is tied to the product, not a specific deployment. If you delete it, it will also delete it in LIVE. For a test account though that should be fine. In the DevPortal under Accounts you can search by Player Id and delete the user.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 17, 2023, 5:04pm UTC](https://forums.unrealengine.com/t/how-to-test-login-and-eos-invaliduser/1164308/5 "2023-05-17T17:04:10Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
