()
| 85 | } |
| 86 | |
| 87 | function authHeaders() { |
| 88 | return { |
| 89 | "Content-Type": "application/x-www-form-urlencoded", |
| 90 | Accept: "application/json", |
| 91 | "User-Agent": `opencode/${InstallationVersion}`, |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // Parse the `exp` claim out of a JWT access_token without verifying the |
| 96 | // signature. We only use this to decide whether to proactively refresh, never |
no outgoing calls
no test coverage detected