MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / providerErrorMessage

Function providerErrorMessage

packages/core/api/src/oauth-popup.ts:162–171  ·  view source on GitHub ↗
(params: OAuthCallbackUrlParams)

Source from the content-addressed store, hash-verified

160};
161
162const providerErrorMessage = (params: OAuthCallbackUrlParams): PopupErrorMessage | null => {
163 const error = params.error ?? null;
164 const description = params.error_description ?? null;
165 const value = error ?? description;
166 if (!value) return null;
167 return {
168 short: "OAuth provider rejected authorization",
169 details: error && description && description !== error ? `${error}: ${description}` : value,
170 };
171};
172
173/**
174 * Run a plugin's `completeOAuth` against URL params from the OAuth redirect,

Callers 1

runOAuthCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected