Clear session + RP-initiated logout redirect

Clears the Better Auth session cookie and, if post_logout_redirect_uri matches one registered on the client, redirects there. Otherwise redirects to /.

GET/api/oauth/logout

Query Parameters

client_id?string
post_logout_redirect_uri?string
Formaturi
curl -X GET "https://your-instance/api/oauth/logout"
Empty
Empty
{
  "type": "https://docs.appstrate.dev/errors/rate-limited",
  "title": "Rate Limited",
  "status": 429,
  "detail": "Too many requests. Please try again shortly.",
  "code": "rate_limited",
  "request_id": "req_abc123",
  "retry_after": 30
}