From 85260a97ff8ab65627c170c21386ca09fae10c69 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Tue, 3 Dec 2024 23:08:20 -0800 Subject: [PATCH] Allow any state for Neon OAuth --- .../app/api/v1/integrations/neon/oauth/authorize/route.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/app/api/v1/integrations/neon/oauth/authorize/route.tsx b/apps/backend/src/app/api/v1/integrations/neon/oauth/authorize/route.tsx index 63f014f67..68707322f 100644 --- a/apps/backend/src/app/api/v1/integrations/neon/oauth/authorize/route.tsx +++ b/apps/backend/src/app/api/v1/integrations/neon/oauth/authorize/route.tsx @@ -1,5 +1,5 @@ import { createSmartRouteHandler } from "@/route-handlers/smart-route-handler"; -import { jsonStringSchema, yupNever, yupObject, yupString } from "@stackframe/stack-shared/dist/schema-fields"; +import { yupNever, yupObject, yupString } from "@stackframe/stack-shared/dist/schema-fields"; import { StackAssertionError } from "@stackframe/stack-shared/dist/utils/errors"; import { redirect } from "next/navigation"; @@ -12,7 +12,7 @@ export const GET = createSmartRouteHandler({ query: yupObject({ client_id: yupString().defined(), redirect_uri: yupString().defined(), - state: jsonStringSchema.defined(), + state: yupString().defined(), code_challenge: yupString().defined(), code_challenge_method: yupString().oneOf(["S256"]).defined(), response_type: yupString().oneOf(["code"]).defined(),