* Authorize a provider using OAuth
(options: Options<ProviderOauthAuthorizeData, ThrowOnError>)
| 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 |
no outgoing calls
no test coverage detected