provider usersusers DELETE /api/users/{uuid}/login_sessions/{session_id}/
@utdk/posthog /api/users/{uuid}/login_sessions/{session_id}/
users_login_sessions_destroy
Revoke a single login session belonging to the current user. Self-only. Requires recent auth (TimeSensitiveActionPermission) so a stolen cookie can't weaponize revocation, and is blocked while impersonating via ImpersonationBlockedPathsMiddleware.
session_id path required
string
uuid path required
string

Try it

Authentication
Configure credentials for PostHog API
usersLoginSessionsDestroy
DELETE/api/users/{uuid}/login_sessions/{session_id}/
Revoke a single login session belonging to the current user. Self-only. Requires recent auth (TimeSensitiveActionPermission) so a stolen cookie can't weaponize revocation, and is blocked while impersonating via ImpersonationBlockedPathsMiddleware.

Parameters

required
required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.usersLoginSessionsDestroy()