fix(opencode): secure manual MCP OAuth callback
This commit is contained in:
parent
4b83f5d8f0
commit
ed486f0b49
7 changed files with 283 additions and 99 deletions
|
|
@ -2304,6 +2304,7 @@ export class Auth2 extends HeyApiClient {
|
|||
directory?: string
|
||||
workspace?: string
|
||||
code?: string
|
||||
state?: string
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
|
|
@ -2316,6 +2317,7 @@ export class Auth2 extends HeyApiClient {
|
|||
{ in: "query", key: "directory" },
|
||||
{ in: "query", key: "workspace" },
|
||||
{ in: "body", key: "code" },
|
||||
{ in: "body", key: "state" },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -8407,6 +8407,7 @@ export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartRespo
|
|||
export type McpAuthCallbackData = {
|
||||
body?: {
|
||||
code: string
|
||||
state: string
|
||||
}
|
||||
path: {
|
||||
name: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue