{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/171e7b8948bd418d91ef294ad8a723ae\" frameborder=\"0\" width=\"1280\" height=\"960\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":960,"width":1280,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":960,"thumbnail_width":1280,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/171e7b8948bd418d91ef294ad8a723ae-5e6920c0ccb626f5.gif","duration":296.989,"title":"Implementing Secure User Authentication and Authorization in WTWR Application 🔒","description":"Hi everyone, in this video, I walk you through my WTWR backend project for Sprint 13, where I implemented authentication and authorization using JWT and password hashing. I expanded the user schema to include email and password fields, ensuring passwords are hashed with bcrypt before saving. I also built middleware for protected routes, allowing users to only access their own data and handle errors like duplicate emails. I faced challenges with token verification and hiding the password field, but I resolved them effectively. I hope you find this overview helpful, and I look forward to your feedback!"}