feat: discord oauth whitelist

This commit is contained in:
diced
2025-06-06 20:33:41 -07:00
parent 6e9dea989e
commit e5eaaca5a0
8 changed files with 47 additions and 1 deletions
+2
View File
@@ -221,12 +221,14 @@ export const schema = z.object({
clientId: z.string(),
clientSecret: z.string(),
redirectUri: z.string().url().nullable().default(null),
whitelistIds: z.array(z.string()).default([]),
})
.or(
z.object({
clientId: z.undefined(),
clientSecret: z.undefined(),
redirectUri: z.undefined(),
whitelistIds: z.undefined().or(z.array(z.string()).default([])),
}),
),
github: z