{"info":{"_postman_id":"6c33df69-ba9f-4e69-a887-7209cfc810f6","name":"jwt_auth_users_Question_randomizer","description":"<html><head></head><body><p>This collection demonstrates a simple JWT-based authentication flow for user accounts.</p>\n<h2 id=\"prerequisite\">Prerequisite</h2>\n<ul>\n<li>Set the environment variable <code>BASE_URL</code> to your API host (e.g. <code>http://localhost:3000</code>).</li>\n</ul>\n<h2 id=\"requests\">Requests</h2>\n<ol>\n<li><strong>register</strong> — <code>POST {{BASE_URL}}/auth/register</code><ul>\n<li>Create a new user account.</li>\n</ul>\n</li>\n<li><strong>signIn</strong> — <code>POST {{BASE_URL}}/auth/signin</code><ul>\n<li>Authenticate a user and receive a JWT access token.</li>\n</ul>\n</li>\n<li><strong>profile</strong> — <code>GET {{BASE_URL}}/auth/profile</code><ul>\n<li>Retrieve the authenticated user profile.</li>\n<li>Requires a valid JWT from <strong>signIn</strong> (typically sent as <code>Authorization: Bearer &lt;token&gt;</code>).</li>\n</ul>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"53300232","collectionId":"6c33df69-ba9f-4e69-a887-7209cfc810f6","publishedId":"2sBXihrYoe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-03-19T23:54:49.000Z"},"item":[{"name":"register","id":"86aa656f-6b4c-44aa-a78b-34f828c09118","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"sheldon\",\r\n  \"email\": \"sheldon@mail.com\",\r\n  \"password\": \"987654321\",\r\n  \"role\": \"teacher\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/auth/register","urlObject":{"path":["auth","register"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"86aa656f-6b4c-44aa-a78b-34f828c09118"},{"name":"signIn","id":"1b7c0bce-ccb3-4602-b764-9ed194b5456e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"sheldon@mail.com\",\r\n  \"password\": \"987654321\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/auth/signin","urlObject":{"path":["auth","signin"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b7c0bce-ccb3-4602-b764-9ed194b5456e"},{"name":"profile","id":"6234c035-5161-43bf-a905-5fc410585a9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NCwicm9sZSI6InRlYWNoZXIiLCJpYXQiOjE3NzQ3MjkxMTAsImV4cCI6MTc3NDczNjMxMH0.4YptabnlHCK6YSACgs7L-3jahZUcISStaN-MIjIeW3w","type":"text"}],"url":"{{BASE_URL}}/auth/profile","urlObject":{"path":["auth","profile"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6234c035-5161-43bf-a905-5fc410585a9c"},{"name":"getQuestions","id":"9632bb76-b366-4617-8d82-76c035196bbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BASE_URL}}/questions/","urlObject":{"path":["questions",""],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9632bb76-b366-4617-8d82-76c035196bbc"},{"name":"New Request","id":"468c9c45-a05c-45f2-9257-501195e8816c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"468c9c45-a05c-45f2-9257-501195e8816c"}]}