Skip to content

Add isLoggedIn property to getCurrentUser method response #213

@Naresh-Narsing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions