Skip to content

Conversation

@illicitonion
Copy link
Member

It looks like something changed with either GitHub or browsers such that GitHub is frequently giving 401s. I'm not sure whether that's because they're expiring tokens more readily, or sessions are lasting longer than they used to.

Ideally Octocrab would notice 401s and force a re-auth, but it doesn't have an obvious hook for that. Instead, just expire sessions after an hour so that we will stop seeing existing tokens, and will automatically redirect people to fetch new tokens.

It looks like something changed with either GitHub or browsers such that
GitHub is frequently giving 401s. I'm not sure whether that's because
they're expiring tokens more readily, or sessions are lasting longer
than they used to.

Ideally Octocrab would notice 401s and force a re-auth, but it doesn't
have an obvious hook for that. Instead, just expire sessions after an
hour so that we will stop seeing existing tokens, and will automatically
redirect people to fetch new tokens.
@illicitonion illicitonion enabled auto-merge (squash) December 5, 2025 13:02
Copy link
Collaborator

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

One comment about rust

Copy link
Collaborator

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Approved

@illicitonion illicitonion merged commit 9ae50ef into main Dec 9, 2025
3 checks passed
@illicitonion illicitonion deleted the expire-sessions branch December 9, 2025 14:13
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.

3 participants