Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Nuxt3 how to store user data correctly after logging in

I want to store user data after a person logs in, I also use middleware on the "/page" page that looks at whether the user is logged in, if so, he skips, but I have user data stored until the page is refreshed and if a person refreshes the page on ""/page" tc Nuxt3 will not have time to make a request for the user will say that he is not authorized and after a moment authorizes him again, is there any storage that allows you to do this, I would be grateful for the material to teach this.

trying use localStorage but nuxt3 didnt define user fast

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I am not use to nuxt but seems like state management issue

Check this out Nuxt Store Not Keeping Logged in

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading