Fix typescript linting

This commit is contained in:
Laurie Voss
2025-06-23 15:00:56 -07:00
parent 23d6093327
commit 7004076007
+3 -1
View File
@@ -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);