Sync Postman.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
$kind: collection
|
||||
order: 1000
|
||||
@@ -0,0 +1,2 @@
|
||||
$kind: collection
|
||||
order: 1000
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
$kind: http-request
|
||||
url: http://localhost:3000/api/auth/passkey/options
|
||||
method: POST
|
||||
order: 1000
|
||||
+4
@@ -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
|
||||
+19
@@ -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
|
||||
Reference in New Issue
Block a user