Skip to content

Scheduling infrastructure for absolutely everyone.

fix: ZodError in auth/oauth/authorize (#12877)

Carina Wollendorferf0bd6287130d
diff --git a/apps/web/pages/auth/oauth2/authorize.tsx b/apps/web/pages/auth/oauth2/authorize.tsx
index 18b9fa14040..c7394958465 100644
--- a/apps/web/pages/auth/oauth2/authorize.tsx
+++ b/apps/web/pages/auth/oauth2/authorize.tsx
@@ -18,7 +18,7 @@ export default function Authorize() {
const router = useRouter();
const searchParams = useCompatSearchParams();
- const client_id = searchParams?.get("client_id") as string;
+ const client_id = (searchParams?.get("client_id") as string) || "";
const state = searchParams?.get("state") as string;
const scope = searchParams?.get("scope") as string;