From fb06cf8e5585a892a8f7bf03720ab09423a698a8 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sat, 31 Jan 2026 15:28:15 -0600 Subject: [PATCH] feat(auth): add Okta domain to SSO provider list and adjust SSO request handling - Included a new Okta domain in the array of allowed domains for SSO authentication. - Modified the SSO request handling logic to return early if the request is an SSO callback, enhancing the flow of authentication. --- packages/server/src/lib/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/lib/auth.ts b/packages/server/src/lib/auth.ts index e754b9868..b8b0409af 100644 --- a/packages/server/src/lib/auth.ts +++ b/packages/server/src/lib/auth.ts @@ -62,6 +62,7 @@ export const { handler, api } = betterAuth({ "http://localhost:3000", "https://absolutely-handy-falcon.ngrok-free.app", "https://dev-pee8hhc3qbjlqedb.us.auth0.com", + "https://trial-2804699.okta.com", ] : []), ]; @@ -120,7 +121,7 @@ export const { handler, api } = betterAuth({ } } else { const isSSORequest = context?.path.includes("/sso/callback"); - if (!isSSORequest) { + if (isSSORequest) { return; } const isAdminPresent = await db.query.member.findFirst({