{"info":{"_postman_id":"ab023819-b900-4034-a62d-99f65aa2d158","name":"innobyte","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"26404406","collectionId":"ab023819-b900-4034-a62d-99f65aa2d158","publishedId":"2sAXqmAjrD","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-09-11T10:30:34.000Z"},"item":[{"name":"signup","id":"d3d39e9f-9563-468f-9390-08a517ff62c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"admin\",\n    \"email\": \"admin@gmail.com\",\n    \"password\": \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/signup","description":"<p>/api/signup - is used for users to signup to this application. If the signup is successful an email with otp will sent to the user to verify their email id. User can signin only after the verification is completed.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ab023819-b900-4034-a62d-99f65aa2d158","id":"ab023819-b900-4034-a62d-99f65aa2d158","name":"innobyte","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"727fa450-dbfb-4682-bc80-e6d63ebe9e95","name":"signupFail","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"admin\",\n    \"email\": \"admin@gmail.com\",\n    \"password\": \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"98"},{"key":"Date","value":"Sat, 07 Sep 2024 09:47:59 GMT"},{"key":"X-RateLimit-Reset","value":"1725703357"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-iCn2RwzvvrXZZaPIRtvJPctx0ho\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"User already exists\"\n        }\n    ]\n}"},{"id":"aff2df7c-150c-4a18-808a-a3704bab5afb","name":"signupSuccess","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"abin\",\n    \"email\": \"abin@gmail.com\",\n    \"password\": \"abin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"97"},{"key":"Date","value":"Sat, 07 Sep 2024 09:48:35 GMT"},{"key":"X-RateLimit-Reset","value":"1725703357"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"202"},{"key":"ETag","value":"W/\"ca-mMqnQUVHMi9ByQElVKnqfw/xczc\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Signup success\",\n    \"data\": {\n        \"name\": \"abin\",\n        \"email\": \"abin@gmail.com\",\n        \"_id\": \"66dc21732b4b9a9d8ded8632\",\n        \"createdAt\": \"2024-09-07T09:48:35.536Z\",\n        \"updatedAt\": \"2024-09-07T09:48:35.536Z\"\n    }\n}"}],"_postman_id":"d3d39e9f-9563-468f-9390-08a517ff62c1"},{"name":"signin","id":"ce8522d4-d409-4f8e-a57a-1d4716607859","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"admin\",\n    \"email\": \"admin@gmail.com\",\n    \"password\": \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/signup","description":"<p>/api/signin - will allow users to login to our application. It returns a jwt access token with the response. This token can be used by the user to access other protected routes in our application.</p>\n<p>Only verified user can login.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ab023819-b900-4034-a62d-99f65aa2d158","id":"ab023819-b900-4034-a62d-99f65aa2d158","name":"innobyte","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c39e1f6d-612a-44d1-a0d0-cedccd05ebad","name":"signinFail","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@gmail.com\",\n    \"password\": \"admn\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"95"},{"key":"Date","value":"Sat, 07 Sep 2024 09:49:37 GMT"},{"key":"X-RateLimit-Reset","value":"1725703357"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-9m+AK7BE8qP5iovL8JHDQi9jZ0I\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Invalid email or password\"\n        }\n    ]\n}"},{"id":"9ab3f578-cc72-4e83-b3aa-4a0ceed7c7cd","name":"signinSuccess","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"admin@gmail.com\",\n    \"password\": \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"94"},{"key":"Date","value":"Sat, 07 Sep 2024 09:49:59 GMT"},{"key":"X-RateLimit-Reset","value":"1725703357"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"460"},{"key":"ETag","value":"W/\"1cc-NQppfzTGvZs+lWO7Wd/Xqh8RCPU\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Login success\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"66db7b7c11674490be6ce868\",\n            \"name\": \"admin\",\n            \"email\": \"admin@gmail.com\",\n            \"createdAt\": \"2024-09-06T22:00:28.890Z\",\n            \"updatedAt\": \"2024-09-06T22:00:28.890Z\"\n        },\n        \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NmRiN2I3YzExNjc0NDkwYmU2Y2U4NjgiLCJuYW1lIjoiYWRtaW4iLCJlbWFpbCI6ImFkbWluQGdtYWlsLmNvbSIsImlhdCI6MTcyNTcwMjU5OSwiZXhwIjoxNzI1NzA2MTk5fQ.SARqh_A-_2XbGFecd8d_T7VhwQtTEHHjN1pFCrbG5k8\"\n    }\n}"}],"_postman_id":"ce8522d4-d409-4f8e-a57a-1d4716607859"},{"name":"profile","id":"d3267563-656b-4c3b-8dfa-3c632cb5534f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/profile","description":"<p>/api/profile - is a protected route. It can be accessed by the user after successfull login. This route will return the users profile informations such as username, and email.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ab023819-b900-4034-a62d-99f65aa2d158","id":"ab023819-b900-4034-a62d-99f65aa2d158","name":"innobyte","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","profile"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6c567ee8-8966-4c08-b43d-46c8c67b1ba3","name":"profileFail","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/profile"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Sat, 07 Sep 2024 09:47:36 GMT"},{"key":"X-RateLimit-Reset","value":"1725703357"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-D0caOTgNJ/hnYZ65l/wi3rF29XQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"UnAuthorized Request\"\n        }\n    ]\n}"},{"id":"bce87fef-fb35-4a89-bde5-839d729d1e37","name":"profileSuccess","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"93"},{"key":"Date","value":"Sat, 07 Sep 2024 09:51:28 GMT"},{"key":"X-RateLimit-Reset","value":"1725703357"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"202"},{"key":"ETag","value":"W/\"ca-dvhYtk/b8CGY1a88xEaHXToLf6A\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"User Profile\",\n    \"data\": {\n        \"_id\": \"66db7b7c11674490be6ce868\",\n        \"name\": \"admin\",\n        \"email\": \"admin@gmail.com\",\n        \"createdAt\": \"2024-09-06T22:00:28.890Z\",\n        \"updatedAt\": \"2024-09-06T22:00:28.890Z\"\n    }\n}"}],"_postman_id":"d3267563-656b-4c3b-8dfa-3c632cb5534f"},{"name":"verify-otp","id":"0f7cadd0-f0d2-4f07-9ecd-a2005e0a6174","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"dfahoiuwh3e\",\n    \"otp\": \"315112\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/verify-otp","description":"<p>/api/verify-otp - is used for users to verify their email. If verification is success, isVerified status will change to true. Then user can signin to this application.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ab023819-b900-4034-a62d-99f65aa2d158","id":"ab023819-b900-4034-a62d-99f65aa2d158","name":"innobyte","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","verify-otp"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"94af6c3d-c775-41c0-915c-93baf9043974","name":"verify-otp","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"66e1a131c1f7ebdc9a5b546c\",\n    \"otp\": \"568989\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/verify-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"96"},{"key":"Date","value":"Wed, 11 Sep 2024 15:00:11 GMT"},{"key":"X-RateLimit-Reset","value":"1726067575"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"256"},{"key":"ETag","value":"W/\"100-nB9jejFl60Eopaw66fN+NHulTpA\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Otp verified successfully, Pleast login\",\n    \"data\": {\n        \"_id\": \"66e1a131c1f7ebdc9a5b546c\",\n        \"name\": \"iamabin\",\n        \"email\": \"iamabin1100@gmail.com\",\n        \"isVerified\": false,\n        \"createdAt\": \"2024-09-11T13:54:57.831Z\",\n        \"updatedAt\": \"2024-09-11T13:54:57.831Z\"\n    }\n}"},{"id":"845f7da6-ed37-4a00-85e7-b439dea23915","name":"verify-otp","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"66e1a131c1f7ebdc9a5b546c\",\n    \"otp\": \"568089\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/verify-otp"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"99"},{"key":"Date","value":"Thu, 12 Sep 2024 00:18:33 GMT"},{"key":"X-RateLimit-Reset","value":"1726101214"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-gKD5/Tu7XMddQq+25UMX6FrDy8Q\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Otp has expired\"\n        }\n    ]\n}"}],"_postman_id":"0f7cadd0-f0d2-4f07-9ecd-a2005e0a6174"},{"name":"resend-otp","id":"0aeb6549-39da-4a1b-932b-273834ef8385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"66e1a131c1f7ebdc9a5b546c\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/resend-otp","description":"<p>/api/resend-otp - is used to resend otp if the user couldnt enter otp within 10 minutes.</p>\n<p>Resend otp will work only once in a minute.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"ab023819-b900-4034-a62d-99f65aa2d158","id":"ab023819-b900-4034-a62d-99f65aa2d158","name":"innobyte","type":"collection"}},"urlObject":{"protocol":"http","port":"3000","path":["api","resend-otp"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e0414936-abe3-4ea4-8b4e-23825daade1d","name":"resend-otp","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"66e1a131c1f7ebdc9a5b546c\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/resend-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"96"},{"key":"Date","value":"Wed, 11 Sep 2024 15:03:29 GMT"},{"key":"X-RateLimit-Reset","value":"1726067834"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"ETag","value":"W/\"42-EWzkQrdHmc5c0H6L7/2QGyt6IAQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"You are already verified. Please signin\"\n        }\n    ]\n}"},{"id":"255037a4-015a-4e84-b1e4-ebdab295d71f","name":"resend-otp","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"userId\": \"66db7b7c11674490be6ce868\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/resend-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"97"},{"key":"Date","value":"Thu, 12 Sep 2024 00:21:13 GMT"},{"key":"X-RateLimit-Reset","value":"1726101318"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"252"},{"key":"ETag","value":"W/\"fc-sZIdzqzrQnpz9wkRtalZsYUubgs\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"An otp is send to your emain, Please verify\",\n    \"data\": {\n        \"isVerified\": false,\n        \"_id\": \"66db7b7c11674490be6ce868\",\n        \"name\": \"admin\",\n        \"email\": \"admin@gmail.com\",\n        \"createdAt\": \"2024-09-06T22:00:28.890Z\",\n        \"updatedAt\": \"2024-09-06T22:00:28.890Z\"\n    }\n}"}],"_postman_id":"0aeb6549-39da-4a1b-932b-273834ef8385"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"f6580f41-bc7a-422c-9628-2e88aea4bbfc","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"8319b766-88c6-4ef5-833e-773bc8018eb8","type":"text/javascript","packages":{},"exec":[""]}}]}