I’m doing a school project. I’m beginner to Ionic + Angular.
Once a user logs in my PWA, the user’s email is assigned as a variable in a .service file called ‘CRUD.service.ts’. I use it so that whenever a logged in user go to any page, I have a record of their email.
But the problem is that when the user refreshes the page in the browser or navigate back and forward, the variables in my ‘CRUD.service.ts’ are cleared so I do not have record of their email anymore.
I need it so that even if they refresh the page, their email is still stored somewhere but it will only be cleared when they logout.