|
1 | | -import { betterAuth } from "better-auth"; |
| 1 | +import { betterAuth } from "better-auth/minimal"; |
2 | 2 | import { drizzleAdapter } from "better-auth/adapters/drizzle"; |
3 | 3 | import { getCloudflareContext } from "@opennextjs/cloudflare"; |
4 | 4 | import { anonymous } from "better-auth/plugins"; |
@@ -48,6 +48,35 @@ export async function getAuthServer( |
48 | 48 | cloudflareEnv.GOOGLE_CLIENT_SECRET, |
49 | 49 | }, |
50 | 50 | }, |
| 51 | + experimental: { |
| 52 | + joins: true, |
| 53 | + }, |
| 54 | + onAPIError: { |
| 55 | + customizeDefaultErrorPage: { |
| 56 | + colors: { |
| 57 | + background: "oklch(98% 0.01 61.15)", // base-100 |
| 58 | + foreground: "oklch(21% 0.006 61.15)", // base-content |
| 59 | + primary: "oklch(60% 0.139 61.15)", |
| 60 | + primaryForeground: "oklch(98% 0.02 61.15)", |
| 61 | + mutedForeground: "oklch(21% 0.006 61.15 / 70%)", // base-content/70 |
| 62 | + border: "oklch(21% 0.006 61.15 / 20%)", // base-content/20 |
| 63 | + destructive: "oklch(64% 0.246 16.439)", // error (どこで使われているのだろう?) |
| 64 | + titleBorder: "oklch(60% 0.139 61.15)", // primary |
| 65 | + titleColor: "oklch(21% 0.006 61.15)", // base-content |
| 66 | + gridColor: "", // unused |
| 67 | + cardBackground: "oklch(95% 0.013 61.15)", // base-200 |
| 68 | + cornerBorder: "oklch(60% 0.139 61.15)", // primary |
| 69 | + }, |
| 70 | + font: { |
| 71 | + defaultFamily: |
| 72 | + "'Rounded M+ 1c', 'Rounded M+ 1p', 'M PLUS Rounded 1c', 'M+ 1c', 'MigMix 1c', 'Migu 1c', 'Hiragino Maru Gothic ProN', 'Noto Sans', 'Arial', 'Liberation Sans', sans-serif", |
| 73 | + monoFamily: "Inconsolata, monospace", |
| 74 | + }, |
| 75 | + disableTitleBorder: true, |
| 76 | + disableCornerDecorations: true, |
| 77 | + disableBackgroundGrid: true, |
| 78 | + }, |
| 79 | + }, |
51 | 80 | }); |
52 | 81 | } |
53 | 82 |
|
|
0 commit comments