You are tasked with implementing an authentication system for your Express API. What considerations should you make regarding security, user experience, and scalability when choosing an authentication strategy?

  • Use JWT (JSON Web Tokens) with long expiration times.
  • Store plain text passwords in the database.
  • Implement OAuth 2.0 for social login only.
  • Use basic authentication over HTTP.
Using JWT with long expiration times might seem like a convenient option for user experience, but it could pose a security risk. Storing plain text passwords is a severe security vulnerability. Implementing OAuth 2.0 for social login only might not be sufficient for all authentication needs. Using basic authentication over HTTP is not secure. A robust authentication strategy should consider security (option 1) without compromising user experience and
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *