Skip to main content
Version: 5.9.6

Looking Up Locally Stored User Information

public string UserInDate;
public string UserNickName;

Description

The user's locally stored inDate and nickname are looked up.
You can check them after the user's sign-up or login.
inDate and nickname of the user who logged in to BACKND Base are returned.
They will be refreshed whenever the user logs in or signs up with a new account.

Example

string inDate = Backend.UserInDate;
string nickName = Backend.UserNickName;

Debug.Log(inDate);
Debug.Log(nickName);

Return cases

When the variable is accessed after login UserInDate : User inDate of the currently logged-in account is returned.
UserNickName : User nickname of the currently logged-in account is returned.

When the variable is accessed after logging in as a user without a nickname UserInDate : User inDate of the currently logged-in account is returned.
UserNickName : An empty string object is returned.(string.Empty)

When the variable is accessed immediately after sign-up(same as the case when the nickname does not exist) UserInDate : User inDate of the currently logged-in account is returned.
UserNickName : An empty string object is returned.(string.Empty)

When accessing the variable after creating/changing the nickname UserInDate : User inDate of the currently logged-in account is returned.
UserNickName : User nickname of the currently logged-in account is returned.(The new nickname is returned.)

When accessing the variable before logging in or after failing to log in UserInDate : Empty string object is returned.(string.Empty) UserNickName : An empty string object is returned.(string.Empty)