rhythm-backend/http_client/logout_all.yml
Dmitri f78054fecd
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 10m55s
initial auth stuff
2026-05-03 19:26:29 +02:00

29 lines
591 B
YAML

info:
name: logout all
type: http
seq: 7
http:
method: POST
url: "{{base_url}}/api/v1/protected/auth/logout-all"
auth:
type: bearer
token: "{{access_token}}"
runtime:
scripts:
- type: after-response
code: |-
const status = res.getStatus();
if (status === 200 || status === 204) {
bru.setEnvVar("access_token", "");
bru.setEnvVar("refresh_token", "");
console.log("logout_all - all sessions revoked, tokens cleared");
}
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5