MCPcopy
hub / github.com/Peppermint-Lab/peppermint / getOAuthProvider

Function getOAuthProvider

apps/api/src/lib/auth.ts:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12
13export async function getOAuthProvider() {
14 const provider = await prisma.oAuthProvider.findFirst();
15 if (!provider) {
16 throw new Error(`OAuth provider ${provider} not found`);
17 }
18 return provider;
19}
20
21export async function getSAMLProvider(providerName: any) {
22 const provider = await prisma.sAMLProvider.findUnique({

Callers 1

authRoutesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected