mirror of
https://github.com/run-llama/mcp-nextjs.git
synced 2026-07-01 21:54:01 -04:00
Fix typescript linting
This commit is contained in:
@@ -21,7 +21,7 @@ export default async function AuthorizePage({
|
||||
const code_challenge_method = params.code_challenge_method as string | undefined;
|
||||
|
||||
if (!session || !session.user || !session.user.id) {
|
||||
const headersList = headers();
|
||||
const headersList = await headers();
|
||||
const host = headersList.get('host');
|
||||
const prot = process.env.NODE_ENV === 'production' ? 'https' : 'http';
|
||||
const baseUrl = `${prot}://${host}`;
|
||||
@@ -78,6 +78,8 @@ export default async function AuthorizePage({
|
||||
throw new Error('No session found during consent handling.');
|
||||
}
|
||||
|
||||
if (!client) throw new Error('Client not found during consent handling.');
|
||||
|
||||
const consent = formData.get('consent');
|
||||
|
||||
const redirectUrl = new URL(redirectUri);
|
||||
|
||||
Reference in New Issue
Block a user