{"info":{"_postman_id":"4b8b6aae-c4a8-4cfb-bc52-0326363b2be5","name":"Nodejs Authentication","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"21892829","collectionId":"4b8b6aae-c4a8-4cfb-bc52-0326363b2be5","publishedId":"2sAXjRWA3t","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"DC2626"},"publishDate":"2024-09-08T05:46:26.000Z"},"item":[{"name":"Auth","item":[{"name":"Register","id":"057853d2-27d9-4dc9-8f3e-5e2a5355fc12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"First Name\",\r\n    \"lastName\": \"Last Name\",\r\n    \"email\": \"youremail@gmail.com\",\r\n    \"password\": \"yourpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{serverEnv}}/user/register","urlObject":{"path":["user","register"],"host":["{{serverEnv}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"057853d2-27d9-4dc9-8f3e-5e2a5355fc12"},{"name":"Token and User verify","id":"bc9910d0-5199-4ffe-9f7f-44eee8ca063e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/tokenAndUserVerify/:emailVerificationToken/:userId","urlObject":{"path":["user","tokenAndUserVerify",":emailVerificationToken",":userId"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"emailVerificationToken"},{"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"bc9910d0-5199-4ffe-9f7f-44eee8ca063e"},{"name":"Email Verify By OTP","id":"61c01f4c-a205-4650-90f3-6003aaa43421","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"emailVerifyOTP\": \"2615\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user/emailVerify/:emailVerificationToken/:userId","urlObject":{"path":["user","emailVerify",":emailVerificationToken",":userId"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"emailVerificationToken"},{"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"61c01f4c-a205-4650-90f3-6003aaa43421"},{"name":"Resend OTP","id":"1681cfc5-c2fb-4882-8429-3583969af247","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user/resendOTP/:emailVerificationToken/:userId","urlObject":{"path":["user","resendOTP",":emailVerificationToken",":userId"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"emailVerificationToken"},{"type":"any","value":"","key":"userId"}]}},"response":[],"_postman_id":"1681cfc5-c2fb-4882-8429-3583969af247"},{"name":"Login","id":"33b19d9c-1cb6-486a-888c-23c57a01b5b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"youremail@gmail.com\",\r\n    \"password\": \"yourpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user/login","urlObject":{"path":["user","login"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"33b19d9c-1cb6-486a-888c-23c57a01b5b6"},{"name":"Logout","id":"cd6a2d5f-bb31-4c04-8740-5672ca5328b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2Njk2NjkzNmUwYWM2ODk3OWI4MzZmY2YiLCJlbWFpbCI6InZhdHNhbHBpcGFsYXZhQGdtYWlsLmNvbSIsImZpcnN0TmFtZSI6IlZhdHNhbCIsImxhc3ROYW1lIjoiUGlwYWxhdmEiLCJpYXQiOjE3MjU1Mzc2MDgsImV4cCI6MTcyNTU0MTIwOH0.xyS2mOgd3eACw-qJqXme30V357NgugAnpFKdF0LCNqU"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/logout","urlObject":{"path":["user","logout"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd6a2d5f-bb31-4c04-8740-5672ca5328b2"},{"name":"Refresh","id":"180a6651-a768-4f52-96c9-f2fb111a687d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/refresh","urlObject":{"path":["user","refresh"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"180a6651-a768-4f52-96c9-f2fb111a687d"},{"name":"Profile","id":"b9bfb63b-c075-49e1-abb9-a241a79a608c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2Njk2NjkzNmUwYWM2ODk3OWI4MzZmY2YiLCJlbWFpbCI6InZhdHNhbHBpcGFsYXZhQGdtYWlsLmNvbSIsImZpcnN0TmFtZSI6IlZhdHNhbCIsImxhc3ROYW1lIjoiUGlwYWxhdmEiLCJpYXQiOjE3MjU1Mzc2MDgsImV4cCI6MTcyNTU0MTIwOH0.xyS2mOgd3eACw-qJqXme30V357NgugAnpFKdF0LCNqU"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/profile","urlObject":{"path":["user","profile"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9bfb63b-c075-49e1-abb9-a241a79a608c"},{"name":"Forgot Password","id":"42540477-d8ab-473f-ad02-642efbca1381","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"youremail@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user/forgot-password","urlObject":{"path":["user","forgot-password"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"42540477-d8ab-473f-ad02-642efbca1381"},{"name":"Verify Forgot Password Token","id":"ef446dd7-fff7-419a-9237-4adbf99fe684","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/verifyForgotPasswordToken/:forgotPasswordToken","urlObject":{"path":["user","verifyForgotPasswordToken",":forgotPasswordToken"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"forgotPasswordToken"}]}},"response":[],"_postman_id":"ef446dd7-fff7-419a-9237-4adbf99fe684"},{"name":"Reset Password","id":"9362207e-3620-45cf-a001-f4affa3ea858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"newpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user/resetPassword/:forgotPasswordToken","urlObject":{"path":["user","resetPassword",":forgotPasswordToken"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[{"type":"any","value":"","key":"forgotPasswordToken"}]}},"response":[],"_postman_id":"9362207e-3620-45cf-a001-f4affa3ea858"},{"name":"Change Password","id":"b1c83104-a0f1-4dfd-b6a5-ea83f9357292","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2Njk2NjkzNmUwYWM2ODk3OWI4MzZmY2YiLCJlbWFpbCI6InZhdHNhbHBpcGFsYXZhQGdtYWlsLmNvbSIsImZpcnN0TmFtZSI6IlZhdHNhbCIsImxhc3ROYW1lIjoiUGlwYWxhdmEiLCJpYXQiOjE3MjU1Mzc2MDgsImV4cCI6MTcyNTU0MTIwOH0.xyS2mOgd3eACw-qJqXme30V357NgugAnpFKdF0LCNqU"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\": \"yourpassword\",\r\n    \"newPassword\": \"newpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/user/change-password","urlObject":{"path":["user","change-password"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1c83104-a0f1-4dfd-b6a5-ea83f9357292"},{"name":"Login with google","id":"ac38be78-82a4-4a64-95fc-7fc05b13c23a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/user/google","urlObject":{"path":["user","google"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac38be78-82a4-4a64-95fc-7fc05b13c23a"}],"id":"3ea0f7bd-79ab-464d-8401-9a694d61bd3f","_postman_id":"3ea0f7bd-79ab-464d-8401-9a694d61bd3f","description":""},{"name":"Health Check Copy","id":"249ea9d5-c692-41ba-9eb2-3017bd83e85c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/health/health-check","urlObject":{"path":["health","health-check"],"host":["http://localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"249ea9d5-c692-41ba-9eb2-3017bd83e85c"}],"event":[{"listen":"prerequest","script":{"id":"27a30e96-273c-4e14-bade-c47a30a48c1d","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"7a527959-23f6-402f-afb8-3de757a87327","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"localEnv","value":"http://localhost:8080/api/v1","type":"default"},{"key":"user1Email","value":"youremail@gmail.com","type":"default"},{"key":"user1Pwd","value":"yourpassword","type":"default"},{"key":"access_Token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2Njk2NjkzNmUwYWM2ODk3OWI4MzZmY2YiLCJlbWFpbCI6InZhdHNhbHBpcGFsYXZhQGdtYWlsLmNvbSIsImZpcnN0TmFtZSI6IlZhdHNhbCIsImxhc3ROYW1lIjoiUGlwYWxhdmEiLCJpYXQiOjE3MjU1Mzc2MDgsImV4cCI6MTcyNTU0MTIwOH0.xyS2mOgd3eACw-qJqXme30V357NgugAnpFKdF0LCNqU","type":"default"}]}