From a967b388b723af502febeb04bab3c408a34d555b Mon Sep 17 00:00:00 2001 From: Rogier Reerink Date: Sun, 18 Oct 2026 20:55:45 +0200 Subject: [PATCH] Doc update. --- server/src/database/access_tokens.rs | 6 +++--- server/src/database/refresh_tokens.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/src/database/access_tokens.rs b/server/src/database/access_tokens.rs index 8a32a92..7beef87 100644 --- a/server/src/database/access_tokens.rs +++ b/server/src/database/access_tokens.rs @@ -106,9 +106,9 @@ where .await .map_err(DatabaseError::from)?; - // Nothing is written when the access token already exists, but it's new user ID and user app ID - // are different, or the secret hash has not changed: the update path is intended for secret - // rotation, i.e., updating the secret hash while keeping the same user ID and user app ID. + // Nothing is written when the new user ID and user app ID are different on the existing row, or + // the secret hash has not changed: the update path is intended for secret rotation, i.e., + // updating the secret hash while keeping the same user ID and user app ID. let Some(row) = row else { return Ok(None); }; diff --git a/server/src/database/refresh_tokens.rs b/server/src/database/refresh_tokens.rs index a7b4add..c3c2d44 100644 --- a/server/src/database/refresh_tokens.rs +++ b/server/src/database/refresh_tokens.rs @@ -70,9 +70,9 @@ where .await .map_err(DatabaseError::from)?; - // Nothing is written when the refresh token already exists, but it's new access token ID - // is different, or the secret hash has not changed: the update path is intended for secret - // rotation, i.e., updating the secret hash while keeping the same access token ID. + // Nothing is written when the new access token ID is different on the existing row, or the + // secret hash has not changed: the update path is intended for secret rotation, i.e., updating + // the secret hash while keeping the same access token ID. let Some(row) = row else { return Ok(None); };