Skip to main content Link Menu Expand (external link) Document Search Copy Copied

auth0 refresh-tokens revoke

Revoke refresh tokens so they can no longer be exchanged for new access tokens.

Pass a token id to revoke a single token. Alternatively, use --user-id to revoke all of a user’s tokens, optionally narrowing to a single client with --client-id and a single API with --audience (--client-id requires --user-id, and --audience requires both).

To revoke non-interactively, supply the token id and the --force flag to skip confirmation.

Usage

auth0 refresh-tokens revoke [flags]

Examples

  auth0 refresh-tokens revoke
  auth0 refresh-tokens revoke <token-id>
  auth0 refresh-tokens revoke <token-id> --force
  auth0 refresh-tokens revoke --user-id <user-id> --force
  auth0 refresh-tokens revoke --user-id <user-id> --client-id <client-id>
  auth0 refresh-tokens revoke --user-id <user-id> --client-id <client-id> --audience <audience>

Flags

      --audience string    Narrow a user+client revocation to a single API audience. Requires --user-id and --client-id.
      --client-id string   Narrow a user revocation to a single client. Requires --user-id.
      --force              Skip confirmation.
      --user-id string     Revoke all refresh tokens for this user, instead of a single token by id.

Inherited Flags

      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.