* Start OAuth flow and wait for callback (opens browser)
(options: Options<McpAuthAuthenticateData, ThrowOnError>)
| 902 | * Start OAuth flow and wait for callback (opens browser) |
| 903 | */ |
| 904 | public authenticate<ThrowOnError extends boolean = false>(options: Options<McpAuthAuthenticateData, ThrowOnError>) { |
| 905 | return (options.client ?? this._client).post<McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, ThrowOnError>( |
| 906 | { |
| 907 | url: "/mcp/{name}/auth/authenticate", |
| 908 | ...options, |
| 909 | }, |
| 910 | ) |
| 911 | } |
| 912 | |
| 913 | /** |
| 914 | * Set authentication credentials |