Created
July 17, 2022 05:18
-
-
Save iandark/584ee9f0582aeec6939d0aaf285748e4 to your computer and use it in GitHub Desktop.
2FA-NodeJS postman collection (v2.1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "info": { | |
| "_postman_id": "359205c8-a162-429e-bc26-700daeb92fea", | |
| "name": "Plus", | |
| "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
| "_exporter_id": "12462622" | |
| }, | |
| "item": [ | |
| { | |
| "name": "2FA", | |
| "item": [ | |
| { | |
| "name": "Auth", | |
| "request": { | |
| "method": "POST", | |
| "header": [], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"email\": \"teste@user.com\",\n \"password\": \"1234\"\n}", | |
| "options": { | |
| "raw": { | |
| "language": "json" | |
| } | |
| } | |
| }, | |
| "url": { | |
| "raw": "localhost:3000/auth", | |
| "host": [ | |
| "localhost" | |
| ], | |
| "port": "3000", | |
| "path": [ | |
| "auth" | |
| ] | |
| } | |
| }, | |
| "response": [] | |
| }, | |
| { | |
| "name": "Generate QR Code", | |
| "request": { | |
| "method": "POST", | |
| "header": [ | |
| { | |
| "key": "Authorization", | |
| "value": "Bearer {{authorizationQRCode}}", | |
| "type": "text" | |
| } | |
| ], | |
| "url": { | |
| "raw": "localhost:3000/generateQrCode", | |
| "host": [ | |
| "localhost" | |
| ], | |
| "port": "3000", | |
| "path": [ | |
| "generateQrCode" | |
| ] | |
| } | |
| }, | |
| "response": [] | |
| }, | |
| { | |
| "name": "Activate two factor", | |
| "request": { | |
| "method": "POST", | |
| "header": [ | |
| { | |
| "key": "Authorization", | |
| "value": "Bearer {{authorizationQRCode}}", | |
| "type": "text" | |
| } | |
| ], | |
| "body": { | |
| "mode": "raw", | |
| "raw": "{\n \"token\": 111\n}" | |
| }, | |
| "url": { | |
| "raw": "localhost:3000/activateTwoFactor", | |
| "host": [ | |
| "localhost" | |
| ], | |
| "port": "3000", | |
| "path": [ | |
| "activateTwoFactor" | |
| ] | |
| } | |
| }, | |
| "response": [] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment