Management API
TypeScript
import { ManagementClient } from "auth0"; async function main() { const client = new ManagementClient({ token: "<token>", }); await client.users.revokeAccess("id", {}); } main();
Revokes selected resources related to a user (sessions, refresh tokens, …).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the user.
ID of the session to revoke.
50
Whether to preserve the refresh tokens associated with the session.
Session deletion request accepted.