# When login with "create=true" option, how can I know if this is newly created user or existed user?

**URL:** <https://forum.heroiclabs.com/t/when-login-with-create-true-option-how-can-i-know-if-this-is-newly-created-user-or-existed-user/2712>\
**Category:** Client Libraries\
**Created:** [June 5, 2022, 1:18am UTC](https://forum.heroiclabs.com/t/when-login-with-create-true-option-how-can-i-know-if-this-is-newly-created-user-or-existed-user/2712 "2022-06-05T01:18:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/bodin/32/1260_2.png) [@bodin](https://forum.heroiclabs.com/u/bodin)\
**Post date:** [June 5, 2022, 1:18am UTC](https://forum.heroiclabs.com/t/when-login-with-create-true-option-how-can-i-know-if-this-is-newly-created-user-or-existed-user/2712/1 "2022-06-05T01:18:13Z")

</div>

Hi,

after player login with client.AuthenticateFacebookAsync(auth, null, true)  
I want to know if this account is freshly created or alreay existed account.  
Is there anyway to check this?

I’m thinking about writing something to Storage engine and use it to check for existed account.  
another way, just login with “create=false” and if we get error 404, that means user is new. then login again with create=true.

but I want to know if there’s more simple way to do it.

Thanks in advance for any answer.

---

<div class="post-metadata">

**Author:** ![ftkg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ftkg/32/1180_2.png) [@ftkg](https://forum.heroiclabs.com/u/ftkg)\
**Post date:** [June 6, 2022, 1:24pm UTC](https://forum.heroiclabs.com/t/when-login-with-create-true-option-how-can-i-know-if-this-is-newly-created-user-or-existed-user/2712/2 "2022-06-06T13:24:13Z")

</div>

Hi @bodin,

as part of that function response you will find a `created` bool field, which should tell you if a new account was created or not.

---

<div class="post-metadata">

**Author:** ![bodin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/bodin/32/1260_2.png) [@bodin](https://forum.heroiclabs.com/u/bodin)\
**Post date:** [June 7, 2022, 6:49am UTC](https://forum.heroiclabs.com/t/when-login-with-create-true-option-how-can-i-know-if-this-is-newly-created-user-or-existed-user/2712/3 "2022-06-07T06:49:52Z")

</div>

Hi ftkg,

Thank you very much, That’s what I’m looking for!

Have a nice day!
