{"info":{"_postman_id":"d336c216-106b-4357-afd3-79dab6ebfc4c","name":"Auth","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"16001457","collectionId":"d336c216-106b-4357-afd3-79dab6ebfc4c","publishedId":"2s8ZDbWgEZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-24T13:15:04.000Z"},"item":[{"name":"signin","event":[{"listen":"test","script":{"id":"3b1b221d-bae1-40fb-861f-d6162fe1a017","exec":["pm.response.json()"],"type":"text/javascript"}}],"id":"79e65087-c9a2-437a-ad49-8c5b80639563","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pratik Aswani","type":"text","disabled":true},{"key":"email","value":"Pratik@gmail.com","type":"text"},{"key":"password","value":"123456","type":"text"},{"key":"photo","type":"file","value":null,"disabled":true}]},"url":"{{your-base-url}}/auth/signin","description":"<p>use this endpoint to signin a existing user!</p>\n","urlObject":{"path":["auth","signin"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"2e9c05e0-7d43-444d-8bf8-ae2af13bb38f","name":"signin","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pratik Aswani","type":"text","disabled":true},{"key":"email","value":"Guddu@gmail.com","type":"text"},{"key":"password","value":"123456","type":"text"},{"key":"photo","type":"file","value":null,"disabled":true}]},"url":"{{DOMAIN}}/auth/signin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzY2ZkNmZlOTJhYTJlNWE3MTZiMzViMCIsImlhdCI6MTY3NDU2NTM4OSwiZXhwIjoxNjc0ODI0NTg5fQ.pys6P9wAdhl4BIZwZyRxM20cQIuCAvglnogEA1pS_RQ; Max-Age=900; Path=/; Expires=Tue, 24 Jan 2023 13:18:09 GMT; HttpOnly"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"453"},{"key":"ETag","value":"W/\"1c5-KHfHdZt4eNeN2bENT8GuS9sCFbQ\""},{"key":"Date","value":"Tue, 24 Jan 2023 13:03:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzY2ZkNmZlOTJhYTJlNWE3MTZiMzViMCIsImlhdCI6MTY3NDU2NTM4OSwiZXhwIjoxNjc0ODI0NTg5fQ.pys6P9wAdhl4BIZwZyRxM20cQIuCAvglnogEA1pS_RQ\",\n    \"user\": {\n        \"_id\": \"63cfd6fe92aa2e5a716b35b0\",\n        \"name\": \"Pratik\",\n        \"email\": \"Guddu@gmail.com\",\n        \"password\": \"$2a$10$CxCUIXFqn71rPtXMZq8X.OFhqy2xkF3B/z3eY48w6XMh8A2idvh0W\",\n        \"rating\": 0,\n        \"createdAt\": \"2023-01-24T13:02:54.484Z\",\n        \"updatedAt\": \"2023-01-24T13:02:54.484Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"79e65087-c9a2-437a-ad49-8c5b80639563"},{"name":"signup","event":[{"listen":"test","script":{"id":"8b1d99e0-9f71-4393-99d3-24ee4b759d26","exec":["pm.response.json()"],"type":"text/javascript"}}],"id":"613af11b-5e6e-40a6-a70c-542a4a2331b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pratik","type":"text"},{"key":"email","value":"Pratik@gmail.com","type":"text"},{"key":"password","value":"123456","type":"text"}]},"url":"{{your-base-url}}/auth/signup","description":"<p>Use this endpoint to signup a new user!</p>\n","urlObject":{"path":["auth","signup"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"b0efc3db-4246-478c-9df0-2cda03feeaea","name":"signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pratik","type":"text"},{"key":"email","value":"Pratik@gmail.com","type":"text"},{"key":"password","value":"123456","type":"text"}]},"url":"{{DOMAIN}}/auth/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzY2ZkN2Y5OTJhYTJlNWE3MTZiMzViNiIsImlhdCI6MTY3NDU2NTYyNSwiZXhwIjoxNjc0ODI0ODI1fQ.QpdQ9Y8xv2s5cShx18OCK5IChdmvBblC2k29IVe4Y3M; Max-Age=900; Path=/; Expires=Tue, 24 Jan 2023 13:22:05 GMT; HttpOnly"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"616"},{"key":"ETag","value":"W/\"268-054QULxWWoZHb+QByFuAK1AcxoE\""},{"key":"Date","value":"Tue, 24 Jan 2023 13:07:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzY2ZkN2Y5OTJhYTJlNWE3MTZiMzViNiIsImlhdCI6MTY3NDU2NTYyNSwiZXhwIjoxNjc0ODI0ODI1fQ.QpdQ9Y8xv2s5cShx18OCK5IChdmvBblC2k29IVe4Y3M\",\n    \"user\": {\n        \"name\": \"Pratik\",\n        \"email\": \"Pratik@gmail.com\",\n        \"password\": \"$2a$10$kfyqaPbHoq05BjZkXyZCse8QOaqArIwJr7QUiR7uyrJut5bVn18p2\",\n        \"social\": {\n            \"leetcodeProfile\": {\n                \"languagesUsed\": []\n            },\n            \"codeforcesProfile\": {\n                \"languagesUsed\": []\n            }\n        },\n        \"upvotes\": 0,\n        \"downvotes\": 0,\n        \"nextUpdateCycle\": 1674565625331,\n        \"rating\": 0,\n        \"friends\": [],\n        \"_id\": \"63cfd7f992aa2e5a716b35b6\",\n        \"createdAt\": \"2023-01-24T13:07:05.337Z\",\n        \"updatedAt\": \"2023-01-24T13:07:05.337Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"613af11b-5e6e-40a6-a70c-542a4a2331b3"},{"name":"signout","id":"4074b5b8-a291-46e9-bca7-cfb728ec98b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{your-base-url}}/auth/signout","description":"<p>Use this endpoint to signout a existing user</p>\n","urlObject":{"path":["auth","signout"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"c678fa91-6cc2-4e3d-953c-4e988c2dc498","name":"signout","originalRequest":{"method":"GET","header":[],"url":"{{DOMAIN}}/auth/signout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"token=j%3Anull; Path=/; Expires=Tue, 24 Jan 2023 13:03:17 GMT; HttpOnly"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-uAorMXfSpnmU2F9+EOQuvZC1pVk\""},{"key":"Date","value":"Tue, 24 Jan 2023 13:03:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Logout Success\"\n}"}],"_postman_id":"4074b5b8-a291-46e9-bca7-cfb728ec98b1"}]}