Skip to content

feat: add deleteAll method on access token provider - #260

Merged
thetutlage merged 2 commits into
adonisjs:10.xfrom
radiumrasheed:delete-all-tokens
Jan 27, 2026
Merged

feat: add deleteAll method on access token provider#260
thetutlage merged 2 commits into
adonisjs:10.xfrom
radiumrasheed:delete-all-tokens

Conversation

@radiumrasheed

Copy link
Copy Markdown
Contributor

🔗 Linked issue

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This adds ability to delete all tokens for a given user. Useful when they change their password or flagged.

Currently, one could get all tokens and then delete it in a loop, but this does that in one query. Good if it's possible a user has many tokens.

Documentation Update

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@thetutlage
thetutlage merged commit a2efc9c into adonisjs:10.x Jan 27, 2026
6 checks passed
@thetutlage

Copy link
Copy Markdown
Member

Looks perfect 👍🏽

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.

2 participants