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

added experiration time after last valid request #349

Closed
wants to merge 1 commit into from

Conversation

vovakovalchukk
Copy link

At the moment, it is possible to set the lifetime of the token only from the moment of its creation. I am faced with a situation where it is necessary to extend the lifetime of the token after each successfully validated request.

This proposal introduces a new parameter: 'intermediate_expiration' . If the standard 'expiration' is null, and 'intermediate_expiration' is equal to the value in minutes (for example 10), then after each validated request, the token lifetime will be extended by 10 minutes.

I am sure this is a very useful and important thing, perhaps I did not offer the best solution, but this idea must be considered and implemented, I am sure many developers will support me

@taylorotwell
Copy link
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!

If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

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.

None yet

2 participants