fix(chat): close SSO auth bypass via checkSSOAccess body flag#4408
Merged
waleedlatif1 merged 3 commits intostagingfrom May 2, 2026
Merged
fix(chat): close SSO auth bypass via checkSSOAccess body flag#4408waleedlatif1 merged 3 commits intostagingfrom
waleedlatif1 merged 3 commits intostagingfrom
Summary
checkSSOAccessshort-circuit invalidateChatAuth— SSO branch now always validates viagetSession(), body-supplied email is ignoredchat_authcookie issuance and validation for SSO deployments to close the replay windowPOST /api/chat/[identifier]/ssoendpoint that returns{ eligible }and never touches the executor.passthrough()andcheckSSOAccessfromdeployedChatAuthBodySchema/deployedChatPostBodySchemachat/utils.test.tsType of Change
Testing
Tested manually;
bun run check:api-validationpasses.Checklist