DEV Community

Discussion on: local storage Use

 
ajaydeveloper profile image
AjayMalhotra

Can I use local-storage to use usernames.
I also heard session storage kind of thing in JavaScript.
Anyways thank you

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

Depends,

Are the user names email addresses?

by allowing usernames to be stored, you make the attackers job easier by doing 50% of the work for them. however, if when you auth, you have 3 credentials. username, date of birth (dont use this its easy to get DOB) and password then you could store usernames with no real impact?

Thread Thread
 
ajaydeveloper profile image
AjayMalhotra

Okay good