Skip to content

Conversation

Naresh-Narsing
Copy link

Summary

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 }

Changes Done:
Modified 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.

Testing Plan

This can be tested by calling the getCurrentUser Method and verifying the current user response object,

Master Issue

Closes #213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add isLoggedIn property to getCurrentUser method response
1 participant