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

Created new configurations to optional TokenBlacklistedException #7

Conversation

Messhias
Copy link
Collaborator

@Messhias Messhias commented Sep 21, 2021

As been related on the forked repository (the first one) #2002, #457, #988, #1573, #983 (this is still open by the way), and in Laravel's application the TokenBlacklistedException shows just because we log out.

Even setting up the grace period to 30 still having the same issue, so I believe the TokenBlacklistedException should be optional since if someone is logged out, forced to log out, or even blacklisted for us (or by application) the exception most of the cases doesn't seem quite relevant to us to see.

This pull request it's a proposal to make this exception just be throwable by option.


Fixes:

  • Created a new config key to enabling the blacklisted exception.
  • Updated unit tests.

PHP Unit tests running normally:
Screenshot 2021-09-21 at 10 25 08

- Created a new config key to enable the blacklisted exception.

- Updated unit tests.
@Messhias Messhias requested a review from eschricker September 21, 2021 09:25
@Messhias Messhias added the enhancement New feature or request label Sep 21, 2021
@Messhias Messhias changed the title Updates 2021-09-21 Created new configurations to optional TokenBlacklistedException Sep 21, 2021
@Messhias Messhias linked an issue Sep 21, 2021 that may be closed by this pull request
Copy link
Contributor

@eschricker eschricker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have found one misspelling and a line which needs to be removed.

src/Manager.php Outdated Show resolved Hide resolved
src/Manager.php Outdated Show resolved Hide resolved
src/Providers/AbstractServiceProvider.php Outdated Show resolved Hide resolved
@Messhias Messhias requested a review from eschricker September 21, 2021 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop token blacklisted exception.
3 participants