It contains the details of the current user.
User is not logged in
If a user is not logged in, we get the data of current user in an object with fields isLoggedIn as false, device info and device type (like desktop, laptop) and currency name (like INR, USD), conversion rate as 1 or true.
User is logged in
When a user is logged in, we get the data of current user in an object with fields isLoggedIn as true and detailed information of current user (like first name, last name, email id, phone, user_id etc) according to the user.
|isLoggedIn||This variable defines that user is logged in or not, if it's value is false, then the user is not logged in and vice-versa.|
|currency||This variable gives the name and conversion rate of currency.|
|role||This variable defines that the specific role about user (vendor, admin, member etc).|
|verified||This variable defines that user is verified or not, if its value is true or 1, then the user is verified and vice-versa.|
|first_name||The variable gives the first name of the user.|
|last_name||The variable gives the last name of the user.|
|_id||If a user is logged in, it gives the unique id of the user.|
|If a user is logged in, it gives the email id of the user.|
|language||This variable gives the language of the user.|
|active||This variable defines that user is active or not, if its value is true or 1, then user is active and vice-versa.|
|wishlist||This variable contains the product information added to the wishlist, if any.|
|use_temporary_password||This variable sends a temporary password (automatically generated) to the user, if set to 1 or true.|
|substore||This variable lets a user to search and order store-based (physical location based) products.|