{"info":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6036498","collectionId":"7d173184-7f15-493a-8b8d-47cacaf3019b","publishedId":"UVXjJvra","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-01-17T10:22:11.000Z"},"item":[{"name":"Signup","id":"38d24011-c331-4322-b526-e0896ce8effa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Piyush Kumar\",\n    \"email\": \"piyush1671@gmail.com\",\n    \"password\": \"random_pass\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/signup","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ae15d6a6-3808-4fba-9314-38eee576aeb5","name":"Signup Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Piyush Kumar\",\n    \"email\": \"piyush1671@gmail.com\",\n    \"password\": \"random_pass\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"84"},{"key":"ETag","value":"W/\"54-sej9Z+TYOyt89OuydBqxJ6MP67s\""},{"key":"Date","value":"Fri, 14 Jan 2022 14:59:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"User Created and verfication email sent!!\"\n}"},{"id":"aae005f5-bbef-4682-a1e9-54abae346b6f","name":"Signup User Already Exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Piyush Kumar\",\n    \"email\": \"piyush1671@gmail.com\",\n    \"password\": \"random_pass\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"86"},{"key":"ETag","value":"W/\"56-G4jL7UEtNlV1v+jU3bskWn2nxlw\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:04:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"User Exists verification email sent again!!\"\n}"}],"_postman_id":"38d24011-c331-4322-b526-e0896ce8effa"},{"name":"Login","id":"0e7543e2-96fb-4062-86a0-a505082137b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"piyush1671@gmail.com\",\n    \"password\": \"random_pass\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/login","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b35b73b5-99c8-4cf2-a521-4f0338d9995f","name":"Login Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"piyush1671@gmail.com\",\n    \"password\": \"random_pass\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"ETag","value":"W/\"125-1hdcnhTds4RX2/xusMO3BChN0Ok\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:08:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"Login successful\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MWUxOGZlNzc1ZWUyY2YyNDliZmVlNDAiLCJuYW1lIjoiUGl5dXNoIEt1bWFyIiwidmVyaWZpZWQiOnRydWUsImlhdCI6MTY0MjE3MjkzMywiZXhwIjoxNjQyMTk0NTMzfQ.yZSdjOfyaFvBaS5SKBROe6yOaP4vYVnsQ36EkedJRTs\"\n}"},{"id":"60730b2b-c09d-43e2-b5d8-d5f08d124efc","name":"Login unSuccessful if email is not verified","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"piyush1671@gmail.com\",\n    \"password\": \"random_pass\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"ETag","value":"W/\"47-mBdsMyaMaIRZNLfpX0c/z9yzmeA\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:01:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"status\": \"fail\",\n    \"message\": \"Please verify you email!!\"\n}"}],"_postman_id":"0e7543e2-96fb-4062-86a0-a505082137b6"},{"name":"Logout","id":"499a72bd-5a11-4575-b081-c156be32c9f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:2000/api/user/logout","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"20df1d00-36cf-49f2-b83d-818df4caba62","name":"Logout Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MWUxOTM1ZDc1ZWUyY2YyNDliZmVlNGQiLCJuYW1lIjoiUGl5dXNoIEt1bWFyIiwidmVyaWZpZWQiOnRydWUsImlhdCI6MTY0MjE3MzM4MiwiZXhwIjoxNjQyMTk0OTgyfQ.LU_f4DDGY5dvE6YcnJJqyWmMzanIsGOgz5o-mCdJBWI","type":"text"}],"url":"http://localhost:2000/api/user/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-AgyBlBirIUmsEJL9o8HLQ8/iUwM\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:11:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"Logout done\"\n}"}],"_postman_id":"499a72bd-5a11-4575-b081-c156be32c9f4"},{"name":"Verify Email","id":"06b81cb9-9a82-473f-aae4-da76b45abe9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:2000/api/user/verify/f7b2f8bbbf5b0b9deae3c90552870cce55becf8f28c2aaef224693eb7e1c5b69","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user","verify","f7b2f8bbbf5b0b9deae3c90552870cce55becf8f28c2aaef224693eb7e1c5b69"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e62a6430-e32d-4ab1-801f-88a8183fb095","name":"Verify Email Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:2000/api/user/verify/f7b2f8bbbf5b0b9deae3c90552870cce55becf8f28c2aaef224693eb7e1c5b69"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"ETag","value":"W/\"38-X6V/BDZkKtGrtGucDp3NEGw/uHk\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:14:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"succes\": false,\n    \"error\": true,\n    \"message\": \"Email Verified\"\n}"}],"_postman_id":"06b81cb9-9a82-473f-aae4-da76b45abe9f"},{"name":"Get User details","id":"c7d5a68f-6a79-4489-bce1-5c45c915989c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:2000/api/user","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"62d503e3-2100-482c-8337-2cb9280c8b7e","name":"Get User details Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MWUxOTM1ZDc1ZWUyY2YyNDliZmVlNGQiLCJuYW1lIjoiUGl5dXNoIEt1bWFyIiwidmVyaWZpZWQiOnRydWUsImlhdCI6MTY0MjE3MzM4MiwiZXhwIjoxNjQyMTk0OTgyfQ.LU_f4DDGY5dvE6YcnJJqyWmMzanIsGOgz5o-mCdJBWI","type":"text"}],"url":"http://localhost:2000/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"146"},{"key":"ETag","value":"W/\"92-UUcE2bwtuADCsyVV/TFfNotQbDM\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:16:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"user\": {\n        \"_id\": \"61e1935d75ee2cf249bfee4d\",\n        \"name\": \"Piyush Kumar\",\n        \"email\": \"piyush1671@gmail.com\",\n        \"emailVerified\": true\n    }\n}"}],"_postman_id":"c7d5a68f-6a79-4489-bce1-5c45c915989c"},{"name":"Edit User profile","id":"ff2c06a3-7559-4c04-a075-faa775a31a19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Piyush Kumar\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8a8eafaa-0585-4f68-b5f7-47151f5b458a","name":"Edit User Password","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MWUxOTM1ZDc1ZWUyY2YyNDliZmVlNGQiLCJuYW1lIjoiUGl5dXNoIEt1bWFyIiwidmVyaWZpZWQiOnRydWUsImlhdCI6MTY0MjE3MzM4MiwiZXhwIjoxNjQyMTk0OTgyfQ.LU_f4DDGY5dvE6YcnJJqyWmMzanIsGOgz5o-mCdJBWI","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currentpassword\": \"random_pass\",\n    \"newpassword\": \"random_pass1\",\n    \"confirmnewpassword\": \"random_pass1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"ETag","value":"W/\"3a-ZOyIw5jV9s0mfFLAP/P7VKWU1DY\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:24:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"Profile Updated\"\n}"},{"id":"d9e3bb0b-57a6-4d74-9154-d864fef68e85","name":"Edit User Name profile Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MWUxOTM1ZDc1ZWUyY2YyNDliZmVlNGQiLCJuYW1lIjoiUGl5dXNoIEt1bWFyIiwidmVyaWZpZWQiOnRydWUsImlhdCI6MTY0MjE3MzM4MiwiZXhwIjoxNjQyMTk0OTgyfQ.LU_f4DDGY5dvE6YcnJJqyWmMzanIsGOgz5o-mCdJBWI","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Piyush Kumar\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-GAEJZ58iv7F3Jeq7HkJMW+LrPwE\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:22:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"Name Updated\"\n}"}],"_postman_id":"ff2c06a3-7559-4c04-a075-faa775a31a19"},{"name":"Edit user Email","id":"20e8e47d-f1b8-4fa5-9a3b-2a0ba7d234c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"currentpassword\": \"random_pass1\",\n    \"email\": \"piyush1671_diff@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/email","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user","email"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bb93a407-861c-4515-a79e-39169d946dcc","name":"Edit user Email Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MWUxOTM1ZDc1ZWUyY2YyNDliZmVlNGQiLCJuYW1lIjoiUGl5dXNoIEt1bWFyIiwidmVyaWZpZWQiOnRydWUsImlhdCI6MTY0MjE3MzM4MiwiZXhwIjoxNjQyMTk0OTgyfQ.LU_f4DDGY5dvE6YcnJJqyWmMzanIsGOgz5o-mCdJBWI","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currentpassword\": \"random_pass1\",\n    \"email\": \"piyush1671_diff@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/email"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"85"},{"key":"ETag","value":"W/\"55-v0H2f6oO3JMGJPwPlY87M4za5qo\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:29:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"Email changed and verfication email sent!!\"\n}"}],"_postman_id":"20e8e47d-f1b8-4fa5-9a3b-2a0ba7d234c0"},{"name":"Forgot Password","id":"a9180ac0-149a-4d09-9187-07984ff07d9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"piyush1671@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/forgot","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user","forgot"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"27ff14d3-5f97-443f-884d-583cf343af13","name":"Forgot Password Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"piyush1671@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/forgot"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"90"},{"key":"ETag","value":"W/\"5a-U7yuwMUpnhJDlc6ZjFLkwbDNHhQ\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:31:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"succes\": true,\n    \"error\": false,\n    \"message\": \"Password reset token sent to email if it exists!\"\n}"}],"_postman_id":"a9180ac0-149a-4d09-9187-07984ff07d9c"},{"name":"Forgot Password change password","id":"fde85e22-f678-48cd-b3b6-2afbdb345aaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"random_pass2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/forgot/5b7d06431334b45f7afb4df1e5afa48b3b8af3b3aa52fa5d55c459a0463c8c7e","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user","forgot","5b7d06431334b45f7afb4df1e5afa48b3b8af3b3aa52fa5d55c459a0463c8c7e"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4a974c10-0d20-4fed-9cdc-544ea97acd8a","name":"Forgot Password change password Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"random_pass2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/forgot/5b7d06431334b45f7afb4df1e5afa48b3b8af3b3aa52fa5d55c459a0463c8c7e"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"ETag","value":"W/\"47-VNl3UK6kPLkia2T9B/aKzd1/6as\""},{"key":"Date","value":"Fri, 14 Jan 2022 15:33:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"Password Reset Successfull!!\"\n}"}],"_postman_id":"fde85e22-f678-48cd-b3b6-2afbdb345aaa"},{"name":"Delete User Account","id":"6a6a11dc-7b9f-4f09-a4e3-e31c750fc12a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MWU1NDI0YWI5NDZiNDkwNjYxYTI3YjYiLCJuYW1lIjoiUGl5dXNoIGt1bWFyIiwidmVyaWZpZWQiOnRydWUsImlhdCI6MTY0MjQxNDgyOSwiZXhwIjoxNjQyNDM2NDI5fQ.IoBa_msPwZKI-iNe52WthtgKFKsrAeGWU9akhd5aR9o","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"random_pass\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/delete","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]},"isInherited":true,"source":{"_postman_id":"7d173184-7f15-493a-8b8d-47cacaf3019b","id":"7d173184-7f15-493a-8b8d-47cacaf3019b","name":"SecAuth","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","user","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3a8786b9-1ca0-4861-971f-e840da7e907f","name":"Delete User Account Success","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MWU1NDI0YWI5NDZiNDkwNjYxYTI3YjYiLCJuYW1lIjoiUGl5dXNoIGt1bWFyIiwidmVyaWZpZWQiOnRydWUsImlhdCI6MTY0MjQxNDgyOSwiZXhwIjoxNjQyNDM2NDI5fQ.IoBa_msPwZKI-iNe52WthtgKFKsrAeGWU9akhd5aR9o","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"random_pass\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/user/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-by","value":"SecAuth-Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"Date","value":"Mon, 17 Jan 2022 10:21:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"error\": false,\n    \"message\": \"User Deleted!\"\n}"}],"_postman_id":"6a6a11dc-7b9f-4f09-a4e3-e31c750fc12a"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{jwt}}"}]}},"event":[{"listen":"prerequest","script":{"id":"68c053a1-374c-4974-88d9-0dadc0fd1948","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0db87570-8751-4070-83b0-811a85f99ba6","type":"text/javascript","exec":[""]}}]}