Skip to content

Conversation

vgrozdanic
Copy link
Contributor

As @lwalejko pointed out, iat claim, according to the RFC, should not be copied from refresh token

The "iat" (issued at) claim identifies the time at which the JWT was issued.

Closes #778

@vgrozdanic vgrozdanic requested a review from a team March 10, 2025 19:55
Copy link
Member

@Andrew-Chen-Wang Andrew-Chen-Wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thxxx!!!!

Comment on lines +442 to 446
with freeze_time("2025-01-02"):
# Ensure iat is different
access = refresh.access_token

self.assertIsInstance(access, AccessToken)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@vgrozdanic vgrozdanic merged commit acacec8 into master Mar 10, 2025
21 checks passed
@vgrozdanic vgrozdanic deleted the vgrozdanic/no-copy-iat branch March 10, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Caim "Issued At" not updated after token refresh

3 participants