Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Purge Command for revoked and/or expired tokens and auth codes #1159

Merged
merged 4 commits into from
Jan 6, 2020

Conversation

MFlor
Copy link
Contributor

@MFlor MFlor commented Jan 6, 2020

What is this feature request for

This adds an artisan command, which allows for users to purge revoked and/or expired tokens and auth codes.

Why is this feature request created?

With a single command to purge revoked and/or expired tokens, users can quickly schedule this to happen on a regular basis or easily purge them once in a while manually.

Usage:

One command is added with two options:

php artisan passport:purge` # This will purge both revoked and expired tokens and auth codes
php artisan passport:purge --revoked` # This will only purge revoked tokens and auth codes
php artisan passport:purge --expired` # This will only purge expired tokens and auth codes
php artisan passport:purge --revoked --expired` # This will purge both expired tokens and auth codes

MFlor added 4 commits January 6, 2020 19:52
In order to more easily purge expired or revoked access tokens, auth codes an refresh tokens, I've created a purge command.
This command can then be scheduled to run on any given interval or run manually when needed.
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.

3 participants