(contentType: string)
| 189 | } satisfies PluginInternal.Plugin<PluginInternal.Requirements | Scope.Scope>) |
| 190 | |
| 191 | function headers(contentType: string) { |
| 192 | return { "Content-Type": contentType, "User-Agent": `opencode/${InstallationVersion}` } |
| 193 | } |
| 194 | |
| 195 | function exchange(code: string, redirect: string, pkce: Pkce) { |
| 196 | return request<TokenResponse>(`${issuer}/oauth/token`, { |