mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-02-22 08:42:00 +00:00
swap trusted origins for .env variables
This commit is contained in:
parent
df820ffdf0
commit
7acd1189ee
@ -6,7 +6,9 @@ import { phoneNumber } from "better-auth/plugins";
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
export const auth = betterAuth({
|
||||
trustedOrigins: ["http://localhost:3000", "http://192.168.18.194:3000"],
|
||||
trustedOrigins: process.env.BETTER_AUTH_TRUSTED_ORIGINS?.split(",") || [
|
||||
"localhost:3000",
|
||||
],
|
||||
user: {
|
||||
additionalFields: {
|
||||
role: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user