I currently have a system I'm building where users can enter an email address and password into my login page, and if they click the signup button after doing that, it stores that data in LocalStorage, before redirecting the user to the signup page.
The signup page then checks the LocalStorage and autofills the email and password from the previous page.
My question is, how safe is LocalStorage for storing that type of data? Storing RAW passwords in this fashion seems like it could be a bad idea. That being said, it is all local on the users device. It isn't being sent to any server or anything, so the chance of attack is reduced.
I've also considered deleting the item from LocalStorage after retrieving it on the signup page. Which would make it safer.
How secure is LocalStorage for storing RAW passwords and this type of data?