fix: restore authentik trusted origin and remove auth card U-border shadow
- Auto-derive trusted origin from AUTHENTIK_ISSUER URL so OAuth callbacks are accepted without requiring a separate AUTHENTIK_ORIGIN env var - Remove leftover ssoProvider schema mapping (no longer used with genericOAuth) - Remove dead @better-auth/sso dependency from package.json - Drop md:shadow-2xl/md:shadow-lg from auth cards — the downward box-shadow was rendering as a U-shaped border (bottom+sides, no top); border + backdrop-blur-xl provides sufficient visual separation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+8
-1
@@ -12,6 +12,13 @@ const authentikEnabled = Boolean(
|
||||
);
|
||||
const signupsDisabled = process.env.DISABLE_SIGNUPS === "true";
|
||||
|
||||
// Derive the authentik origin from the issuer URL so the OAuth callback is
|
||||
// automatically trusted without needing a separate AUTHENTIK_ORIGIN env var.
|
||||
const authentikOrigin =
|
||||
authentikEnabled && process.env.AUTHENTIK_ISSUER
|
||||
? new URL(process.env.AUTHENTIK_ISSUER).origin
|
||||
: null;
|
||||
|
||||
export const auth = betterAuth({
|
||||
database: drizzleAdapter(db, {
|
||||
provider: "pg",
|
||||
@@ -20,11 +27,11 @@ export const auth = betterAuth({
|
||||
session: schema.sessions,
|
||||
account: schema.accounts,
|
||||
verification: schema.verificationTokens,
|
||||
ssoProvider: schema.ssoProviders,
|
||||
},
|
||||
}),
|
||||
trustedOrigins: [
|
||||
"https://beenvoice.soconnor.dev",
|
||||
...(authentikOrigin ? [authentikOrigin] : []),
|
||||
...(process.env.AUTHENTIK_ORIGIN ? [process.env.AUTHENTIK_ORIGIN] : []),
|
||||
],
|
||||
...(authentikEnabled && {
|
||||
|
||||
Reference in New Issue
Block a user