Skip to content

[Frontend] Implement getCurrentUser method to dynamically load home page #146

@amlannandy

Description

@amlannandy

Is your feature request related to a problem? Please describe.
Point is add a getCurrentUser method which runs whenever the app loads. It checks if the user is authenticated and if yes, then loads the profile. Then based on authenticated status, home or login page will be loaded.

(This method will call the /user/profile route in the backend)

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
I'll soon submit a PR for it.

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