From 1561073c78a4c0e693a91cad2501e522320d1855 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2026 15:38:18 +0000 Subject: [PATCH 1/3] chore: release release --- .github/.release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json index cddbaefb9..c95106184 100644 --- a/.github/.release-please-manifest.json +++ b/.github/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.0" + ".": "1.2.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fa2ed919..e2dea4a35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.2.0](https://github.com/trycompai/crm/compare/v1.1.0...v1.2.0) (2026-08-07) + + +### Features + +* **api:** add microsoft sign-in and outlook mailbox sync ([#73](https://github.com/trycompai/crm/issues/73)) ([2a0062f](https://github.com/trycompai/crm/commit/2a0062fb76ffdaa5bbbb3848a5573b8b53cd0036)) + ## [1.1.0](https://github.com/trycompai/crm/compare/v1.0.0...v1.1.0) (2026-08-06) diff --git a/package.json b/package.json index 58f50e8b1..bd61fd43b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "crm", "private": true, "license": "MIT", - "version": "1.1.0", + "version": "1.2.0", "scripts": { "prepare": "git rev-parse --git-dir >/dev/null 2>&1 && git config core.hooksPath .githooks || true", "build": "turbo run build", From 6ff072428af46b35770822654ebb750dd301f04f Mon Sep 17 00:00:00 2001 From: dpulis Date: Wed, 12 Aug 2026 00:30:43 -0400 Subject: [PATCH 2/3] feat(auth): add EMAIL_PASSWORD_ENABLED and GOOGLE_DISABLE_HD env flags --- packages/auth/src/env.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/auth/src/env.ts b/packages/auth/src/env.ts index 9813d7a44..d039f0dc8 100644 --- a/packages/auth/src/env.ts +++ b/packages/auth/src/env.ts @@ -9,6 +9,11 @@ const optional = (key: string): string | undefined => { return value && value.length > 0 ? value : undefined; }; +const flag = (key: string): boolean => { + const value = optional(key)?.toLowerCase(); + return value === "true" || value === "1"; +}; + const pair = ( idKey: string, secretKey: string, @@ -65,6 +70,10 @@ export const env = { cookieDomain: optional("AUTH_COOKIE_DOMAIN"), trustedOrigins: [...new Set([...appUrls, apiUrl])], isProduction: process.env.NODE_ENV === "production", + /** Opt-in: set EMAIL_PASSWORD_ENABLED=true on a deploy to allow email/password auth. */ + emailAndPasswordEnabled: flag("EMAIL_PASSWORD_ENABLED"), + /** Opt-in: set GOOGLE_DISABLE_HD=true to omit Google hosted-domain restriction. */ + googleDisableHd: flag("GOOGLE_DISABLE_HD"), } as const; export function isGoogleConfigured(): boolean { From 2212e3c0fece2311c441b222bfae15d514701702 Mon Sep 17 00:00:00 2001 From: dpulis Date: Wed, 12 Aug 2026 00:31:31 -0400 Subject: [PATCH 3/3] feat(auth): wire email/password and Google hd to env flags --- packages/auth/src/auth.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/auth/src/auth.ts b/packages/auth/src/auth.ts index 9bb79565a..9b41f31f8 100644 --- a/packages/auth/src/auth.ts +++ b/packages/auth/src/auth.ts @@ -41,7 +41,9 @@ if (env.google) { accessType: "offline", - ...(primaryWorkspaceDomain() ? { hd: primaryWorkspaceDomain() } : {}), + ...(!env.googleDisableHd && primaryWorkspaceDomain() + ? { hd: primaryWorkspaceDomain() } + : {}), }; } @@ -72,7 +74,7 @@ export const auth = betterAuth({ }), emailAndPassword: { - enabled: false, + enabled: env.emailAndPasswordEnabled, }, socialProviders,