load trustedOrigins from db

This commit is contained in:
Bill Yang 2025-02-16 23:20:07 -08:00
parent 08435e4c3c
commit e1f299fc8a
4 changed files with 47 additions and 33 deletions

View file

@ -110,7 +110,7 @@ export async function initializePostgres() {
const user =
await sql`SELECT count(*) FROM "user" WHERE username = 'admin'`;
if (user.length === 0) {
auth.api.signUpEmail({
auth!.api.signUpEmail({
body: {
email: "test@test.com",
username: "admin",