Skip to content

Commit 2890eba

Browse files
authoredMay 8, 2020
Merge pull request #135 from JuanDMeGon/master
[FIX] Removing deprecated functionalities
2 parents b196ad1 + 876fadb commit 2890eba

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed
 

‎src/Http/Controllers/AccessTokenController.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ protected function revokeOrDeleteAccessTokens(Token $token, $tokenId)
8686
$query->where('id', '<>', $tokenId);
8787
}
8888

89-
if (Passport::$pruneRevokedTokens) {
90-
$query->delete();
91-
} else {
92-
$query->update(['revoked' => true]);
93-
}
89+
$query->update(['revoked' => true]);
9490
}
9591
}

‎src/LumenPassport.php

-8
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ public static function allowMultipleTokens()
3333
static::$allowMultipleTokens = true;
3434
}
3535

36-
/**
37-
* Delete older tokens or just mark them as revoked?
38-
*/
39-
public static function prunePreviousTokens()
40-
{
41-
Passport::$pruneRevokedTokens = true;
42-
}
43-
4436
/**
4537
* Get or set when access tokens expire.
4638
*

0 commit comments

Comments
 (0)
Please sign in to comment.