メインコンテンツへスキップ
POST
/
users
/
{id}
/
revoke-access
TypeScript
import { ManagementClient } from "auth0";

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

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

ID of the user.

ボディ

session_id
string<session-id>

ID of the session to revoke.

Maximum string length: 50
preserve_refresh_tokens
boolean
デフォルト:false

Whether to preserve the refresh tokens associated with the session.

レスポンス

Session deletion request accepted.