page.tsx25 lines · main
| 1 | import { ConsentClient } from './consent-client'; |
| 2 | |
| 3 | export const metadata = { title: 'Allow app · Briven Auth' }; |
| 4 | export const dynamic = 'force-dynamic'; |
| 5 | |
| 6 | /** |
| 7 | * Production OIDC consent — user allows (or denies) a registered app. |
| 8 | * Linked from GET /v1/auth-core/oidc/authorize after login. |
| 9 | */ |
| 10 | export default async function OAuthConsentPage({ |
| 11 | params, |
| 12 | searchParams, |
| 13 | }: { |
| 14 | params: Promise<{ projectId: string }>; |
| 15 | searchParams: Promise<{ challenge?: string }>; |
| 16 | }) { |
| 17 | const { projectId } = await params; |
| 18 | const { challenge } = await searchParams; |
| 19 | |
| 20 | return ( |
| 21 | <div className="mx-auto flex min-h-[60vh] max-w-md flex-col justify-center px-4 py-12"> |
| 22 | <ConsentClient projectId={projectId} challenge={challenge ?? ''} /> |
| 23 | </div> |
| 24 | ); |
| 25 | } |