-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Currently, the getCurrentUser method returns an object with only the userId property, but it would be useful to also include the isLoggedIn property to determine the login status of the current user.
Current behavior:
getCurrentUser()
only returns an object with the userId
property:
{ userId: "1" }
Expected behavior:
getCurrentUser()
should return an object with both userId
and isLoggedIn
properties, where isLoggedIn
is a boolean indicating whether the user is logged in or not:
{ userId: "1", isLoggedIn: true }
Suggested change:
Modify the getCurrentUser method to return the isLoggedIn property along with userId. This will provide more comprehensive information about the current user and their session status.
Additional context:
This update would allow users or developers to directly access the login status of the current user without needing to perform a separate check.