Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.payven.com.tr/llms.txt

Use this file to discover all available pages before exploring further.

Logout endpoint’i hem access hem refresh token’ı geçersiz kılar.

Endpoint

POST /api/v1/auth/{slug}/logout

İstek

curl -X POST https://identity.payven.com.tr/api/v1/auth/acme-bank/logout \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "refreshToken": "eyJhbGciOiJIUzUxMiIs..."
  }'

Yanıt

{
  "isSuccess": true,
  "message": "Çıkış yapıldı.",
  "code": "200",
  "data": null
}

En iyi uygulamalar

Kullanıcı çıkış yaptığında mutlaka logout endpoint’i çağrılsın — sadece istemci tarafında token’ı silmek yeterli değildir, çalınmış bir token hâlâ geçerli olabilir.
İstemci tarafında token’ları temizleyin (cookie, in-memory state).
Cross-tab senaryoda diğer sekmelere storage event’i ile haber verin.