{"info":{"_postman_id":"2d74079c-4e23-47c7-bfa7-e2d59941ac22","name":"Authentication","description":"<html><head></head><body><p>API to authenticate users with Oauth (google and facebook) and with email and password</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6291584","collectionId":"2d74079c-4e23-47c7-bfa7-e2d59941ac22","publishedId":"T1DqfwhW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-26T21:53:51.000Z"},"item":[{"name":"Signup User","id":"c643a744-0a5b-459c-82a2-d0c18974e12b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"john@gmail.com\",\r\n    \"password\": \"123456\"  \r\n}"},"url":"http://localhost:3000/users/signup","urlObject":{"protocol":"http","port":"3000","path":["users","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c643a744-0a5b-459c-82a2-d0c18974e12b"},{"name":"Sign in User","id":"e805e34a-f8a2-4279-97b1-5040be045554","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"john@gmail.com\",\r\n    \"password\": \"123456\"  \r\n}"},"url":"http://localhost:3000/users/signin","urlObject":{"protocol":"http","port":"3000","path":["users","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e805e34a-f8a2-4279-97b1-5040be045554"},{"name":"Get protected route","id":"617f13e4-773a-4f01-8c0c-d3b9313859e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"","type":"text"}],"url":"http://localhost:3000/users/secret","urlObject":{"protocol":"http","port":"3000","path":["users","secret"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"617f13e4-773a-4f01-8c0c-d3b9313859e3"},{"name":"Google Oauth","id":"2e6f107c-44eb-4bca-b5e7-a572be46d49f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"access_token\": \"ya29.a0AfH6SMAYygJxcoXvpJFEz65WI346w9L8RrfI-_rZ8P4CjRNNmJXD7PDlbkDOdDzILJhI-WQul00EJR9wAkH3DDgaH6lqSdHOujOCZ8u54jp-m95xXluInyF3D8wiF0sQVLga8UToLRTu5czgWHYJJaRT0gD4IKRH4bQ\"\r\n}"},"url":"http://localhost:3000/users/oauth/google","description":"<p>Register and Login using google oauth</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users","oauth","google"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e6f107c-44eb-4bca-b5e7-a572be46d49f"},{"name":"Facebook Oauth","id":"3d4afcc9-8fdd-4d00-a3d3-2e4ab42c1d66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"access_token\": \"EAAlMgY5563YBAA1AliKNikmmbSyjZAXRs8VhyD1ZCQ0CZBVRDym9xtHZAO8hu7mNOPzFaZA0ADhIt7J4vvoZAj5PSeDPRLTqaZC2CejK9uGUVqKhe8ZBWTFRqPCGuSZBGRwYvEdJdd4cZC29SlR653O79R95fwCyZCPmWD7FjYMOqPjFE06OGQljX2aTRU0vdDXBlCbJjZA1UZAbI1VdWQ8VVIxZBqVnjk3wK1CXywZBemAexKZC2wZDZD\"\r\n}"},"url":"http://localhost:3000/users/oauth/facebook","description":"<p>Signup and Signin using Facebook Oauth</p>\n","urlObject":{"protocol":"http","port":"3000","path":["users","oauth","facebook"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d4afcc9-8fdd-4d00-a3d3-2e4ab42c1d66"}]}