import { betterAuth } from "better-auth"; import { genericOAuth } from "better-auth/plugins"; import { nextCookies } from "better-auth/next-js"; export const auth = betterAuth({ plugins: [nextCookies(), genericOAuth({ config: [ { providerId: "authentik", clientId: process.env.OATH_CLIENT_ID || '', clientSecret: process.env.OATH_SECRET_KEY, discoveryUrl: process.env.OATH_DISCOVERY_URL // ... other config options }, // Add more providers as needed ] })] });