Commit 9ae50ef
authored
Expire sessions after 1 hour (#42)
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.1 parent 8769e31 commit 9ae50ef
3 files changed
+26
-14
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments