Skip to content

fix: Time.now → Time.current + broken OAuth revocation scope - #361

Merged
24c02 merged 1 commit into
mainfrom
fix/time-current
Nov 7, 2026
Merged

24c02 merged 1 commit into
mainfrom
fix/time-current

Conversation

@24c02

@24c02 24c02 commented Nov 7, 2026

Copy link
Copy Markdown
Member

Time.now doesn't respect Rails timezone config. fixes 5 files where session/token code used Time.now instead of Time.current.

also fixes oauth_token not_revoked scope which had .or(where(revoked_at: Time.now..)) — a clause that includes tokens 'revoked in the future' which is semantically nonsensical. simplified to where(revoked_at: nil).

…tion scope

Time.now doesn't respect Rails configured timezone. all session
expiration and sign-out code now uses Time.current consistently.

also fixes oauth_token not_revoked scope which had a broken
.or(where(revoked_at: Time.now..)) clause that would include
tokens 'revoked in the future' — semantically nonsensical.
now simply where(revoked_at: nil).
@24c02
24c02 merged commit 658be62 into main Nov 7, 2026
7 of 8 checks passed
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.

1 participant