(cookie: string)
| 149 | } |
| 150 | |
| 151 | function hashSessionCookie(cookie: string): string { |
| 152 | return createHash('sha256').update(cookie).digest('hex'); |
| 153 | } |
| 154 | |
| 155 | // Errors like JWKSTimeout (WorkOS key-fetch stall) or fetch/DNS failures are transient — |
| 156 | // the session cookie is still valid, the upstream is just slow. Returning 401 here would |
no test coverage detected