Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

CurrentUser ID always returns 0 #75

Closed
QFSW opened this issue Jul 22, 2017 · 1 comment
Closed

CurrentUser ID always returns 0 #75

QFSW opened this issue Jul 22, 2017 · 1 comment

Comments

@QFSW
Copy link

QFSW commented Jul 22, 2017

Using GameJolt.API.Manager.Instance.CurrentUser.ID always returns 0, however GameJolt.API.Manager.Instance.CurrentUser.Name works just fine

@loicteixeira
Copy link
Owner

Copying some of the discussion from GameJolt here so it might benefit some other users.

When you # a user, the callback is called when the authentication is successful, not when the user information are fetched. There is no built-in way to delay the callback at the moment but a solution is discussed in #48.

FWIW, ID is 0 and Name is available because the user was fetched by Name. If it has been fetched by ID, then ID would be available but Name wouldn't.

Closing this issue as it is essentially a duplicate of #48 (i.e. CurrentUser.ID does not always returns 0, but is only available once the User.Get call has completed).

@loicteixeira loicteixeira marked this as a duplicate of #48 Jul 22, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants