MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isSupportedProvider

Function isSupportedProvider

packages/backend/src/ee/tokenRefresh.ts:30–31  ·  view source on GitHub ↗
(providerType: string)

Source from the content-addressed store, hash-verified

28type SupportedProviderType = (typeof SUPPORTED_PROVIDERS)[number];
29
30const isSupportedProvider = (providerType: string): providerType is SupportedProviderType =>
31 SUPPORTED_PROVIDERS.includes(providerType as SupportedProviderType);
32
33// @see: https://datatracker.ietf.org/doc/html/rfc6749#section-5.1
34const OAuthTokenResponseSchema = z.object({

Callers 1

ensureFreshAccountTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected