-
Notifications
You must be signed in to change notification settings - Fork 784
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
Personal Access Tokens - Expiration #17
Comments
The current docs say
|
// app/Providers/AppServiceProvider.php
//...
use Laravel\Passport\Bridge\PersonalAccessGrant;
use League\OAuth2\Server\AuthorizationServer;
//...
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*/
public function boot()
{
$this->app->get(AuthorizationServer::class)
->enableGrantType(new PersonalAccessGrant(), new \DateInterval('P1W'));
}
//...
}
//... About \DateInterval parameter: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These tokens should expire just the same as regular client token correct?
I've set this up in
AuthServiceProvider
for testing:Yet i'm still authenticated well after that token should have been expired. Carbon is setup correctly, as I can output Carbon::now() directly as
2016-08-18 16:32:07
.I just noticed in the database the expires_at column is being written as:
2116-08-18 16:09:38
. Very strange, all personal tokens seem to be adding 100 years.The text was updated successfully, but these errors were encountered: