Skip to content

Commit

Permalink
Allow any state for Neon OAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Dec 4, 2024
1 parent d5d28b2 commit 85260a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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";

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

0 comments on commit 85260a9

Please sign in to comment.