Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: Update getting-started.mdx - need to await the searchParams Promise (#40891)

Andreas Braumannc9b7d76a189f
diff --git a/apps/docs/content/guides/auth/oauth-server/getting-started.mdx b/apps/docs/content/guides/auth/oauth-server/getting-started.mdx
index e7fc561c59e..9b708063f24 100644
--- a/apps/docs/content/guides/auth/oauth-server/getting-started.mdx
+++ b/apps/docs/content/guides/auth/oauth-server/getting-started.mdx
@@ -200,7 +200,7 @@ export default async function ConsentPage({
}: {
searchParams: { authorization_id?: string }
}) {
- const authorizationId = searchParams.authorization_id
+ const authorizationId = (await searchParams).authorization_id
if (!authorizationId) {
return <div>Error: Missing authorization_id</div>