Back to Browse

Week 3 - API Testing with Postman: User Authentication and Route Protection

46 views
Apr 20, 2026
6:17

In this tutorial, we dive into creating and testing secure, role-based user registration and login endpoints using Express. We will walk through how to build distinct routes for 'member' and 'president' roles, securely verify passwords using bcrypt, and generate JSON Web Tokens (JWT) for authenticated users. Finally, we thoroughly test our API using Postman—covering successful logins, duplicate user registrations, and incorrect credential handling—while verifying our stored documents in MongoDB Atlas."

Download

0 formats

No download links available.

Week 3 - API Testing with Postman: User Authentication and Route Protection | NatokHD