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.
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.