Skip to content

Commit b2a6692

Browse files
committed
fix/introduced a keyed RefreshTokenHasher
1 parent e654597 commit b2a6692

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/test_sessions_additional.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ async def test_rotate_refresh_session_rejects_missing_user_and_expired_session()
227227
session_id=uuid4(),
228228
id=uuid4(),
229229
user_id=uuid4(),
230-
hashed_refresh_token=RefreshTokenHasher.from_secret(TEST_REFRESH_TOKEN_HASH_SECRET).hash_token(
231-
"refresh-token"
232-
),
230+
hashed_refresh_token=RefreshTokenHasher.from_secret(
231+
TEST_REFRESH_TOKEN_HASH_SECRET
232+
).hash_token("refresh-token"),
233233
auth_time=datetime.now(UTC),
234234
expires_at=datetime.now(UTC) - timedelta(seconds=1),
235235
revoked_at=None,

0 commit comments

Comments
 (0)