{"info":{"_postman_id":"c4b084a4-a163-4160-abef-fd21a09dffc0","name":"GraphQL Complete Authentication","description":"<html><head></head><body><p>Explore a full-fledged authentication system for GraphQL, offering seamless registration, login, and profile management. Enhance your experience with features such as profile picture uploads, password resets, and robust admin capabilities.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"27027258","collectionId":"c4b084a4-a163-4160-abef-fd21a09dffc0","publishedId":"2s9YkhgQ4H","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-11T06:01:54.000Z"},"item":[{"name":"Admin","item":[{"name":"adminLogin","id":"55d0bddc-1bc0-4d00-a3c3-f2b8cd809ced","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation AdminLogin($email: String!, $password: String!) {\r\n  adminLogin(email: $email, password: $password)\r\n}","variables":"{\r\n    \"email\": \"masum184e@gmail.com\",\r\n    \"password\": \"abc!@#123\"\r\n}"}},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>AdminLogin</code> mutation is used for administrator authentication within the application. It requires two parameters: <code>email</code>, which is the email address of the administrator, and <code>password</code>. Upon successful authentication, the mutation returns a token identifier, granting access to authenticated endpoints and administrative functionalities.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"55d0bddc-1bc0-4d00-a3c3-f2b8cd809ced"},{"name":"removeUser","id":"8c462098-242b-418c-a6b4-3a52b610ab5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation RemoveUser($userId: ID!) {\r\n  removeUser(userId: $userId)\r\n}","variables":"{\r\n  \"userId\": \"657689a11668b9bb11f53c89\"\r\n}"}},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>RemoveUser</code> mutation is used to delete a user account from the application. It requires the <code>Bearer</code> token from admin and <code>userId</code> parameter, which specifies the ID of the user to be removed. Upon execution, this mutation permanently deletes the user's account and associated data from the system. Use with caution as this action is irreversible.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"8c462098-242b-418c-a6b4-3a52b610ab5d"},{"name":"admin","id":"953b4e30-d30e-4256-bab9-d29a7739f9cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query Admin($adminId: ID!) {\r\n  admin(adminId: $adminId) {\r\n    fullName\r\n    email\r\n  }\r\n}","variables":"{\r\n  \"adminId\": \"6576910b7e993ed4988baf54\"\r\n}"}},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>Admin</code> query retrieves information about a specific administrator based on their <code>adminId and Bearer</code> token information. It returns the administrator's <code>fullName</code> and <code>email</code>. This query allows for fetching detailed information about individual administrators within the system.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"953b4e30-d30e-4256-bab9-d29a7739f9cb"},{"name":"users","id":"79643682-ee20-42da-b1c4-c4e5b65d30b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query Users {\r\n  users {\r\n  firstName\r\n  lastName\r\n  email\r\n  phoneNumber\r\n  profilePicture\r\n  createdAt  \r\n  }\r\n}","variables":""}},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>Users</code> query retrieves information about all users registered in the application. It returns a list of users with details such as <code>firstName</code>, <code>lastName</code>, <code>email</code>, <code>phoneNumber</code>, <code>profilePicture</code> URL, and <code>createdAt</code> timestamp indicating when each user account was created. This query provides an overview of all users within the system, useful for administrative purposes or displaying user directories.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"79643682-ee20-42da-b1c4-c4e5b65d30b2"}],"id":"d0afe239-2381-4a85-9261-31f3f919a90b","description":"<p>Admins can log in using their email and password, receiving a token upon successful authentication, which is used for secure subsequent requests.</p>\n","_postman_id":"d0afe239-2381-4a85-9261-31f3f919a90b"},{"name":"User","item":[{"name":"userUploadProfilePicture","id":"4532a0c1-f0cd-4c3c-a551-a5b65e2267d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"operations","value":"{\"query\":\"mutation UserUploadProfilePicture($profilePicture: Upload!) {userUploadProfilePicture( profilePicture: $profilePicture)}\"}","type":"text"},{"key":"map","value":"{\"0\":[\"variables:profilePicture\"]}","type":"text"},{"key":"0","type":"file","src":"postman-cloud:///1ef000ee-2f73-4a50-bc94-de73b2260e9d"},{"key":"","value":"","type":"text","disabled":true},{"key":"map","value":"","type":"text","disabled":true}]},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>UserUploadProfilePicture</code> mutation allows users to upload or update their profile pictures. It requires <code>Bearer</code> token and two parameters: <code>userId</code>, which specifies the ID of the user whose profile picture is being updated, and <code>profilePicture</code>, which is the image file to be uploaded. This mutation enables users to personalize their profiles by adding or changing their profile pictures.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"4532a0c1-f0cd-4c3c-a551-a5b65e2267d0"},{"name":"userLogin","id":"8e8d7c9d-0f6e-4488-ae9b-bc9343005d00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation UserLogin($identifier: String!, $password: String!) {\r\n  userLogin(identifier: $identifier, password: $password)\r\n}","variables":"{\r\n    \"identifier\": \"01400095352\",\r\n    \"password\": \"123abdef!@#\"\r\n}"}},"url":"https://graphql-complete-authentication.vercel.app/graphql/","description":"<p>The <code>UserLogin</code> mutation is utilized for user authentication within the application. It requires two parameters: <code>identifier</code>, which can be either the user's `email` or `phoneNumber`, and <code>password</code>. Upon successful authentication, the mutation returns a token, allowing the user to access authenticated endpoints.</p>\n","urlObject":{"protocol":"https","path":["graphql",""],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e8d7c9d-0f6e-4488-ae9b-bc9343005d00"},{"name":"userRegistration","id":"09c2f3e4-1ce4-4023-8cbe-c39cd4bb9f8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation UserRegistration($firstName: String!, $lastName: String!, $email: String!, $phoneNumber: String!, $password: String!) {\r\n  userRegistration(firstName: $firstName, lastName: $lastName, email: $email, phoneNumber: $phoneNumber, password: $password)\r\n}","variables":"{\r\n    \"firstName\": \"Masum\",\r\n    \"lastName\": \"Billah\",\r\n    \"email\": \"masum144e@gmail.com\",\r\n    \"phoneNumber\": \"01412095352\",\r\n    \"password\": \"abc!@#123\"\r\n}"}},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>UserRegistration</code> mutation is used to register a new user in the application. It requires the following parameters: <code>firstName</code>, <code>lastName</code>, <code>email</code>, <code>phoneNumber</code>, and <code>password</code>. Upon successful authentication, the mutation returns a token, allowing the user to access authenticated endpoints.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"09c2f3e4-1ce4-4023-8cbe-c39cd4bb9f8f"},{"name":"userResetPasswordSendEmail","id":"cf364542-4b37-4ffa-9834-c19a56da76ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation UserResetPasswordSendEmail($email: String!) {\r\n  userResetPasswordSendEmail(email: $email)\r\n}","variables":"{\r\n  \"email\": \"masum184e@gmail.com\"\r\n}"}},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>UserResetPasswordSendEmail</code> mutation triggers the sending of a password reset email to the specified email address. It requires the <code>email</code> parameter, which is the email address associated with the user account. This mutation initiates the process for users to reset their passwords securely.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf364542-4b37-4ffa-9834-c19a56da76ae"},{"name":"userResetPassword","id":"2bf0cb10-a694-4f7c-8109-dec8cfa1754e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation UserResetPassword($secretKey: String!, $token: String!, $password: String!) {\r\n  userResetPassword(secretKey: $secretKey, token: $token, password: $password)\r\n}","variables":"{\r\n    \"secretKey\": \"27a41240c17b61ab7d1060f57ab6d52530fb448b43c4de9e4de7aa1e6b3bc304\",\r\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIzMDA3MTkwODU1ZTVjZjAwZTBjYTY4ZWM5ZTc0NzI0MjY3MWU1YWE3MzU0YmJkM2FkOTMyOWExNzFhMTQ3YmRmZTM4MDRjMWJhYzYyYWMyNTBlYThjNWQyOWY0ZjZkOTciLCJpYXQiOjE3MTU3ODUwNjMsImV4cCI6MTcxNjIxNzA2M30.H3fCn0JRHSG4eAbnjfO7r9hL3VmT3k-ofUMPFXzE5bI\",\r\n    \"password\": \"123abdef!@#\"\r\n}"}},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>UserResetPassword</code> mutation is used to reset a user's password. It requires three parameters: <code>secretKey</code>, <code>token</code>, and <code>password comes from the link send via email</code>. The <code>secretKey</code> is a unique identifier for password reset requests, the <code>token</code> is a security token sent to the user's email, and the <code>password</code> is the new password the user wishes to set. This mutation enables users to securely reset their passwords after initiating the process through a password reset email.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"2bf0cb10-a694-4f7c-8109-dec8cfa1754e"},{"name":"userData","id":"4893d5a6-062a-41bb-a74c-1eb6f4883b4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query User($userId: ID!) {\r\n  user(userId: $userId) {\r\n  firstName\r\n  lastName\r\n  email\r\n  phoneNumber\r\n  createdAt\r\n  profilePicture  \r\n  }\r\n}","variables":"{\r\n  \"userId\": \"657690cfcd811bd727893b0f\"\r\n}"}},"url":"https://graphql-complete-authentication.vercel.app/graphql","description":"<p>The <code>User</code> query retrieves information about a specific user based on their <code>userId and Bearer</code> token. It returns the user's <code>firstName</code>, <code>lastName</code>, <code>email</code>, <code>phoneNumber</code>, <code>createdAt</code> timestamp indicating when the user account was created, and <code>profilePicture</code> URL if available. This query allows for fetching detailed user information for various purposes within the application.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["graphql-complete-authentication","vercel","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"4893d5a6-062a-41bb-a74c-1eb6f4883b4f"}],"id":"e589eed9-8e82-473f-a05c-84fbf1a126f4","description":"<p>Users can effortlessly register and authenticate, ensuring secure access to their accounts. They have the flexibility to manage their profiles, update personal information, and reset passwords securely. With features like profile picture uploading, users can personalize their profiles, making their experience more engaging.</p>\n","_postman_id":"e589eed9-8e82-473f-a05c-84fbf1a126f4"}]}