{
baseURL: "http://localhost:5173",
secret: AUTH_SECRET || "your-secret-key-at-least-32-characters",
database: drizzleAdapter(db, {
provider: "pg",
schema: schema,
}),
user: {
additionalFields: {
firstName: {
type: "string",
required: true,
input: true
},
lastName: {
type: "string",
required: true,
input: true
},
role: {
type: "string",
required: true,
input: false
}
}
},
emailAndPassword: {
enabled: true,
fromEmail: "noreply@example.com"
},
socialProviders: {
google: {
clientId: GOOGLE_CLIENT_ID,
clientSecret: GOOGLE_CLIENT_SECRET,
},
},
plugins: [
organization(),
admin()
],
debug: process.env.NODE_ENV !== 'production',
}
{
baseURL: "http://localhost:5173",
secret: AUTH_SECRET || "your-secret-key-at-least-32-characters",
database: drizzleAdapter(db, {
provider: "pg",
schema: schema,
}),
user: {
additionalFields: {
firstName: {
type: "string",
required: true,
input: true
},
lastName: {
type: "string",
required: true,
input: true
},
role: {
type: "string",
required: true,
input: false
}
}
},
emailAndPassword: {
enabled: true,
fromEmail: "noreply@example.com"
},
socialProviders: {
google: {
clientId: GOOGLE_CLIENT_ID,
clientSecret: GOOGLE_CLIENT_SECRET,
},
},
plugins: [
organization(),
admin()
],
debug: process.env.NODE_ENV !== 'production',
}