mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-10 13:36:45 +03:00
sso: normalize provider config via discovery
This commit is contained in:
@@ -5,6 +5,9 @@ import { sso } from "@better-auth/sso";
|
||||
import { db, users } from "./db";
|
||||
import * as schema from "./db/schema";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { ensureValidSsoProviders } from "./sso/provider-maintenance";
|
||||
|
||||
await ensureValidSsoProviders();
|
||||
|
||||
export const auth = betterAuth({
|
||||
// Database configuration
|
||||
@@ -171,4 +174,4 @@ export const auth = betterAuth({
|
||||
});
|
||||
|
||||
// Export type for use in other parts of the app
|
||||
export type Auth = typeof auth;
|
||||
export type Auth = typeof auth;
|
||||
|
||||
Reference in New Issue
Block a user