diff --git a/lib/public/Authentication/Token/IProvider.php b/lib/public/Authentication/Token/IProvider.php index 3eeb8da73ee75..452123d43b2e8 100644 --- a/lib/public/Authentication/Token/IProvider.php +++ b/lib/public/Authentication/Token/IProvider.php @@ -28,6 +28,16 @@ interface IProvider { */ public function invalidateTokensOfUser(string $uid, ?string $clientName); + /** + * invalidates (deletes) a single token of a user, e.g. one session or app password + * + * @param string $uid + * @param int $id the token's database id, see IToken::getId() + * @since 36.0.0 + * @return void + */ + public function invalidateTokenById(string $uid, int $id); + /** * Get a token by token string id *