Login with storege browser

41 Views Asked by At

I'm having trouble finding something that I can show me a way to follow my project, in it I have a login page with store pinia, when I f5 all my data that was in the pinia and reset, this causes me a big problem because all time a user gives f5 to my pinia store will lose his information such as the jwt token , username and password , in this I have some functions that check if these data are matched and valid to let users log in , so every time the browser is updated will lose the data consequently the login too, I was looking at the browser's localstore it would be a good idea, could someone just give me a light on how I would do this my store image when I login my store image when I login, my store image when I refresh the browser my store image when I refresh the browser

0

There are 0 best solutions below