Skip to content

Add isLoggedIn property to getCurrentUser method response #213

Description

@Naresh-Narsing

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions