TypeScript API / @laikacms/server/oauth2 / handleLogoutAll
Function: handleLogoutAll()
ts
function handleLogoutAll(request, config): Promise<Response>;Handle logout from all sessions (GET or POST /oauth2/logout/all)
Requires a valid access token. Prefer the Authorization: Bearer … header; the legacy ?access_token= query string is still honored for backward compatibility but a warning is logged.
Parameters
| Parameter | Type | Description |
|---|---|---|
request | Request | The incoming request |
config | OAuthConfig | OAuth configuration |
Returns
Promise<Response>
HTML response showing logout success