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.
This commit is contained in:
Mauricio Siu
2026-01-31 15:28:15 -06:00
parent 69ba901535
commit fb06cf8e55

View File

@@ -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({