Return only the profile fields required by the interface, such as the display name and permitted account details. Exclude password hashes and authentication secrets from responses.
How should user passwords be stored in a database?
What should a profile API return instead of the stored password hash?
The answer
More FAQs in How should user passwords be stored in a database?
Ordinary login does not require recovering a password. Use adaptive hashing for verification and provide a secure reset flow instead of storing a recoverable original value.
No. A salt prevents identical passwords from producing the same stored result and can accompany the hash. Keep actual passwords and any optional pepper secret.
Still have questions?
Browse all our FAQs or reach out to our support team
Want to upskill yourself?
Your learning library
Small steps. Big possibilities.
Find your next course. Build something great.