MCPcopy Create free account
hub / github.com/arctic-cli/interface / authorize

Method authorize

packages/sdk/js/src/gen/sdk.gen.ts:719–732  ·  view source on GitHub ↗

* Authorize a provider using OAuth

(options: Options<ProviderOauthAuthorizeData, ThrowOnError>)

Source from the content-addressed store, hash-verified

717 * Authorize a provider using OAuth
718 */
719 public authorize<ThrowOnError extends boolean = false>(options: Options<ProviderOauthAuthorizeData, ThrowOnError>) {
720 return (options.client ?? this._client).post<
721 ProviderOauthAuthorizeResponses,
722 ProviderOauthAuthorizeErrors,
723 ThrowOnError
724 >({
725 url: "/provider/{id}/oauth/authorize",
726 ...options,
727 headers: {
728 "Content-Type": "application/json",
729 ...options.headers,
730 },
731 })
732 }
733
734 /**
735 * Handle OAuth callback for a provider

Callers 6

handleAntigravityLoginFunction · 0.45
handlePluginAuthFunction · 0.45
handleAlibabaLoginFunction · 0.45
startAuthFlowFunction · 0.45
auth.tsFile · 0.45
server.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected