We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79f96c2 commit 0356d18Copy full SHA for 0356d18
src/Console/PurgeCommand.php
@@ -46,7 +46,10 @@ public function handle(): void
46
Passport::token()->newQuery()->where($constraint)->delete();
47
Passport::authCode()->newQuery()->where($constraint)->delete();
48
Passport::refreshToken()->newQuery()->where($constraint)->delete();
49
- Passport::deviceCode()->newQuery()->where($constraint)->delete();
+
50
+ if (Passport::$deviceCodeGrantEnabled) {
51
+ Passport::deviceCode()->newQuery()->where($constraint)->delete();
52
+ }
53
54
$this->components->info(sprintf('Purged %s.', implode(' and ', array_filter([
55
$revoked ? 'revoked items' : null,
0 commit comments