Skip to content

Instantly share code, notes, and snippets.

@iandark
Created July 17, 2022 05:18
Show Gist options
  • Select an option

  • Save iandark/584ee9f0582aeec6939d0aaf285748e4 to your computer and use it in GitHub Desktop.

Select an option

Save iandark/584ee9f0582aeec6939d0aaf285748e4 to your computer and use it in GitHub Desktop.
2FA-NodeJS postman collection (v2.1)
{
"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