Skip to main content
Always revoke active sessions when a user logs out to prevent unauthorized access.

Usage

Parameters

Return Value

Example Implementation

Secure Logout Handler

Always revoke sessions during logout:
If revocation fails (e.g., network error), the session will still expire at its validUntil timestamp. However, it’s best practice to always attempt revocation.

When to Revoke

Revocation requires a blockchain transaction which may take 10-30 seconds. Don’t block the logout flow - fire the revocation and continue.