Skip to content

Commit cb14a5b

Browse files
author
waleed
committed
ack PR comments
1 parent cc12965 commit cb14a5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/sim/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export async function POST(request: NextRequest) {
170170
isActive: true,
171171
authType,
172172
password: encryptedPassword,
173-
allowedEmails: authType === 'email' ? allowedEmails : [],
173+
allowedEmails: authType === 'email' || authType === 'sso' ? allowedEmails : [],
174174
outputConfigs,
175175
createdAt: new Date(),
176176
updatedAt: new Date(),

packages/db/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,9 @@ export const chat = pgTable(
648648
customizations: json('customizations').default('{}'), // For UI customization options
649649

650650
// Authentication options
651-
authType: text('auth_type').notNull().default('public'), // 'public', 'password', 'email'
651+
authType: text('auth_type').notNull().default('public'), // 'public', 'password', 'email', 'sso'
652652
password: text('password'), // Stored hashed, populated when authType is 'password'
653-
allowedEmails: json('allowed_emails').default('[]'), // Array of allowed emails or domains when authType is 'email'
653+
allowedEmails: json('allowed_emails').default('[]'), // Array of allowed emails or domains when authType is 'email' or 'sso'
654654

655655
// Output configuration
656656
outputConfigs: json('output_configs').default('[]'), // Array of {blockId, path} objects

0 commit comments

Comments
 (0)