Skip to content

Commit e64e5f5

Browse files
sandhosereivilibre
andauthored
Apply suggestions from code review
Co-authored-by: reivilibre <[email protected]>
1 parent 76137c4 commit e64e5f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/handlers/src/oauth2/token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,13 +601,13 @@ async fn refresh_token_grant(
601601
}
602602

603603
// Looks like it's a double-refresh, client lost their refresh token on
604-
// the way back. Let's revoke the two new access and refresh tokens, and
604+
// the way back. Let's revoke the unused access and refresh tokens, and
605605
// issue new ones
606606
info!(
607607
oauth2_session.id = %session.id,
608608
oauth2_client.id = %client.id,
609609
%refresh_token.id,
610-
"A refresh token was used twice, but the new refresh token was lost. Revoking the old ones and issuing new ones."
610+
"Refresh token already used, but issued refresh and access tokens are unused. Assuming those were lost; revoking those and reissuing new ones."
611611
);
612612

613613
repo.oauth2_access_token()

0 commit comments

Comments
 (0)