Files
hamburger/lib/auth.ts
T
yaemiku aac328e8ef
Build Full Stack / release-image (push) Successful in 5m20s
update
2026-03-28 04:27:38 +01:00

18 lines
530 B
TypeScript

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
]
})]
});