Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amlannandy opened this issue Mar 4, 2021 · 0 comments · May be fixed by #147
Open

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

amlannandy opened this issue Mar 4, 2021 · 0 comments · May be fixed by #147

Comments

@amlannandy
Copy link
Contributor

amlannandy commented Mar 4, 2021

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.

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 a pull request may close this issue.

1 participant