From 6915878bc6c021a5fab5b26cb5da4fdcc0f242b0 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 12 Jan 2026 11:57:42 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- crates/handlers/src/oauth2/token.rs | 2 +- crates/storage/src/oauth2/refresh_token.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/handlers/src/oauth2/token.rs b/crates/handlers/src/oauth2/token.rs index 3d004523a..696c7d426 100644 --- a/crates/handlers/src/oauth2/token.rs +++ b/crates/handlers/src/oauth2/token.rs @@ -716,7 +716,7 @@ async fn refresh_token_grant( return Err(RouteError::RefreshTokenInvalid(next_refresh_token.id)); } - // This could be a double-refresh, see bellow + // This could be a double-refresh, see below repo.oauth2_access_token() .revoke(clock, next_access_token) .await?; diff --git a/crates/storage/src/oauth2/refresh_token.rs b/crates/storage/src/oauth2/refresh_token.rs index 8a352d836..68b3a15e2 100644 --- a/crates/storage/src/oauth2/refresh_token.rs +++ b/crates/storage/src/oauth2/refresh_token.rs @@ -146,8 +146,8 @@ pub trait OAuth2RefreshTokenRepository: Send + Sync { /// # Parameters /// /// * `since`: An optional timestamp to start from - /// * `until`: The timestamp before which to revoke tokens - /// * `limit`: The maximum number of tokens to revoke + /// * `until`: The timestamp before which to delete tokens + /// * `limit`: The maximum number of tokens to delete /// /// # Errors ///