Skip to content

feat(auth0-auth-js): add revokeToken support - #219

Closed
jd3vi1 wants to merge 1 commit into
mainfrom
feat/SDK-8850-auth0-auth-js
Closed

feat(auth0-auth-js): add revokeToken support#219
jd3vi1 wants to merge 1 commit into
mainfrom
feat/SDK-8850-auth0-auth-js

Conversation

@jd3vi1

@jd3vi1 jd3vi1 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds AuthClient.revokeToken() which calls the RFC 7009 /oauth/revoke endpoint
  • Introduces TokenRevocationError for failed revocations, exported from the public surface
  • Adds RevokeTokenOptions type (token + optional tokenTypeHint)

Test plan

  • should successfully revoke a token — verifies token and hint are sent correctly
  • should revoke a token without tokenTypeHint — verifies hint is omitted when not provided
  • should throw TokenRevocationError when revocation fails — verifies error wrapping on 400 response
  • should send client credentials on the revocation request — verifies client_id and client_secret are included

Adds AuthClient.revokeToken() which calls the RFC 7009 /oauth/revoke
endpoint. Introduces TokenRevocationError for failed revocations.
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@jd3vi1, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 39 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0c27f300-c40e-4581-a624-9b7680533450

📥 Commits

Reviewing files that changed from the base of the PR and between 21e9777 and 197f240.

📒 Files selected for processing (4)
  • packages/auth0-auth-js/src/auth-client.spec.ts
  • packages/auth0-auth-js/src/auth-client.ts
  • packages/auth0-auth-js/src/errors.ts
  • packages/auth0-auth-js/src/types.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/SDK-8850-auth0-auth-js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jd3vi1 jd3vi1 closed this Jul 15, 2026
@jd3vi1
jd3vi1 deleted the feat/SDK-8850-auth0-auth-js branch July 15, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant