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

Function getOidcConfig

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

Source from the content-addressed store, hash-verified

3import { prisma } from "../prisma";
4
5export async function getOidcConfig() {
6 const config = await prisma.openIdConfig.findFirst();
7 if (!config) {
8 throw new Error("Config not found in the database");
9 }
10 return config;
11}
12
13export async function getOAuthProvider() {
14 const provider = await prisma.oAuthProvider.findFirst();

Callers 1

authRoutesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected