{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/b5f4d85ab6604b838a3b7f8cfd7d046f\" frameborder=\"0\" width=\"1726\" height=\"1294\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1294,"width":1726,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1294,"thumbnail_width":1726,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/b5f4d85ab6604b838a3b7f8cfd7d046f-704c2eb7d6466d75.gif","duration":1641.487,"title":"Building a Social Media App with JWT","description":"This Loom explains a social media app build, emphasizing the authentication and feed visibility logic. Yosufian reviews the front end login and signup flow, then details the backend signup and login endpoints, including hashing passwords, issuing JWTs, and verifying tokens via the Authorization header with a 15 minute expiry and a refresh token. He demonstrates public versus friends-only feeds using a SQL query with joins on posts, users, and friendships where accepted removes null statuses. He also discusses the main challenges: choosing JWT over third party super-based authentication, handling complex SQL for friends-only visibility, and aligning frontend and backend variables such as email versus username and the post table title and content fields."}