Repository navigation
Commit 5cefc21
Check a session once when an app asks get-session
The hook read the session on every request, and the auth API then checked
it again, so every app's session check paid for two. On the API it also
took the refresh whose cookie the answer must carry. Only pages read it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 907bb16 commit 5cefc21
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
0 commit comments