MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isValidOAuthProvider

Function isValidOAuthProvider

apps/api/src/lib/oauth/oauth.utils.ts:7–11  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

5import type { IOAuthCredentials, OAuthProvider } from "./oauth.types";
6
7export const isValidOAuthProvider = (value: string): value is OAuthProvider => {
8 const providerSet: ReadonlySet<string> = new Set(OAUTH_PROVIDERS);
9
10 return providerSet.has(value);
11};
12
13export type OAuthCredentialSource = Pick<
14 Env,

Callers 2

auth.routes.tsFile · 0.90

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected