Sync Postman.

This commit is contained in:
2026-10-08 13:36:08 +02:00
parent 9038120734
commit 85f46cb041
43 changed files with 274 additions and 0 deletions
@@ -0,0 +1,2 @@
$kind: collection
order: 1000
@@ -0,0 +1,2 @@
$kind: collection
order: 1000
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:3000/api/auth/passkey/options
method: POST
order: 1000
@@ -0,0 +1,4 @@
$kind: http-request
url: http://localhost:3000/api/auth/passkey/verify
method: POST
order: 2000
@@ -0,0 +1,2 @@
$kind: collection
order: 2000
@@ -0,0 +1,9 @@
$kind: http-request
url: http://localhost:3000/api/auth/token
method: POST
body:
type: urlencoded
content:
grant_type: refresh_token
refresh_token: "{{refresh_token}}"
order: 2000
@@ -0,0 +1,19 @@
$kind: http-request
url: http://localhost:3000/api/auth/token
method: POST
body:
type: urlencoded
content:
grant_type: client_credentials
client_id: "{{user_app_id}}"
client_secret: "{{user_app_secret}}"
scripts:
- type: afterResponse
code: |-
var access_token = pm.response.json()["access_token"];
pm.collectionVariables.set("access_token", access_token);
var refresh_token = pm.response.json()["refresh_token"];
pm.collectionVariables.set("refresh_token", access_token);
language: text/javascript
order: 1000
@@ -0,0 +1,8 @@
$kind: http-request
url: http://localhost:3000/api/auth/token/revoke
method: POST
body:
type: urlencoded
content:
token: "{{refresh_token}}"
order: 3000