{"info":{"_postman_id":"d21c2c34-cd3e-47e2-a701-9ef4068e98bd","name":"Auth full stack","description":"<html><head></head><body><h2 id=\"auth-full-stack-api\">Auth Full Stack API</h2>\n<p>A full-stack authentication API built with the MERN (MongoDB, Express, React, Node.js) stack. This collection covers all authentication-related endpoints including user registration, login, logout, profile retrieval, and profile updates.</p>\n<h3 id=\"base-url\">Base URL</h3>\n<p><code>http://localhost:3000/api/auth</code></p>\n<h3 id=\"endpoints-overview\">Endpoints Overview</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Method</th>\n<th>Endpoint</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>POST</td>\n<td>/register</td>\n<td>Register a new user</td>\n</tr>\n<tr>\n<td>POST</td>\n<td>/login</td>\n<td>Authenticate and log in a user</td>\n</tr>\n<tr>\n<td>POST</td>\n<td>/logout</td>\n<td>Log out the current user</td>\n</tr>\n<tr>\n<td>GET</td>\n<td>/user</td>\n<td>Retrieve authenticated user info</td>\n</tr>\n<tr>\n<td>POST</td>\n<td>/update</td>\n<td>Update authenticated user profile</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"authentication\">Authentication</h3>\n<p>Protected routes require a valid session or token obtained after login.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"40353140","collectionId":"d21c2c34-cd3e-47e2-a701-9ef4068e98bd","publishedId":"2sBXqFMMyw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-04-21T23:44:31.000Z"},"item":[{"name":"registerUser","id":"2df194c2-888c-4853-b3b7-fa15ed0707a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Abdullah\",\r\n    \"email\":\"abdullahkamanger300@gmail.com\",\r\n    \"password\":\"Abdullah@13579\",\r\n    \"confirmPassword\":\"Abdullah@13579\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/register","urlObject":{"protocol":"http","port":"3000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2df194c2-888c-4853-b3b7-fa15ed0707a0"},{"name":"loginUser","id":"395f5ba2-8a06-449c-96da-b0ee35186088","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"abdullahkamanger300@gmail.com\",\r\n    \"password\": \"Abdullah@13579\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/login","urlObject":{"protocol":"http","port":"3000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"395f5ba2-8a06-449c-96da-b0ee35186088"},{"name":"getUserInfo","id":"cf7aab34-e58a-40cf-b0e3-57aa8a55ce94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/user","urlObject":{"protocol":"http","port":"3000","path":["api","auth","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf7aab34-e58a-40cf-b0e3-57aa8a55ce94"},{"name":"updateUser","id":"d2b2841a-5be1-495c-9509-9fb8d6dfa096","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"updatedAbdullah2\",\n  \"password\":\"Updated@1password\",\n  \"confirmPassword\":\"Updated@1password\"\n}\n ","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/auth/update","urlObject":{"protocol":"http","port":"3000","path":["api","auth","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2b2841a-5be1-495c-9509-9fb8d6dfa096"},{"name":"logoutUser","id":"3a9e9338-2e88-40dc-8391-0557279e0a55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"url":"http://localhost:3000/api/auth/logout","urlObject":{"protocol":"http","port":"3000","path":["api","auth","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a9e9338-2e88-40dc-8391-0557279e0a55"}]}