Allow any state for Neon OAuth
Some checks failed
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled

This commit is contained in:
Konstantin Wohlwend 2024-12-03 23:08:20 -08:00
parent d5d28b2dd1
commit 85260a97ff

View File

@ -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(),