Skip to content

Commit 7a03262

Browse files
committed
fix(chat): cast allowedEmails to string[] for SSO eligibility check
1 parent 7f10983 commit 7a03262

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/api/chat/[identifier]/sso

apps/sim/app/api/chat/[identifier]/sso/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const POST = withRouteHandler(
4747
)
4848
}
4949

50-
const eligible = isEmailAllowed(email, deployment.allowedEmails || [])
50+
const eligible = isEmailAllowed(email, (deployment.allowedEmails as string[]) || [])
5151

5252
return addCorsHeaders(createSuccessResponse({ eligible }), request)
5353
}

0 commit comments

Comments
 (0)