()
| 3 | import { prisma } from "../prisma"; |
| 4 | |
| 5 | export 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 | |
| 13 | export async function getOAuthProvider() { |
| 14 | const provider = await prisma.oAuthProvider.findFirst(); |