Passer au contenu principal
POST
/
sessions
/
{id}
/
revoke
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.sessions.revoke("id");
}
main();

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

id
string
requis

ID of the session to revoke.

Maximum string length: 50

Réponse

Session deletion request accepted.