mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 17:12:49 -05:00
[SM-501] Add support for revoking access tokens (#2692)
* Add support for revoking access tokens
This commit is contained in:
@ -42,4 +42,13 @@ public class ApiKeyRepository : Repository<ApiKey, Guid>, IApiKeyRepository
|
||||
|
||||
return results.ToList();
|
||||
}
|
||||
|
||||
public async Task DeleteManyAsync(IEnumerable<ApiKey> objs)
|
||||
{
|
||||
using var connection = new SqlConnection(ConnectionString);
|
||||
await connection.QueryAsync<ApiKey>(
|
||||
$"[{Schema}].[ApiKey_DeleteByIds]",
|
||||
new { Ids = objs.Select(obj => obj.Id).ToGuidIdArrayTVP() },
|
||||
commandType: CommandType.StoredProcedure);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user