Update route.ts

This commit is contained in:
Nate Kelley 2025-04-18 09:41:56 -06:00
parent 85d5fb8f2b
commit 04daeaec81
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import { redirect } from 'next/navigation';
export async function GET(request: NextRequest) {
const { searchParams } = new URL(request.url);
const token_hash = searchParams.get('token_hash') || searchParams.get('code'); //THE SUPABASE DOCS ARE WRONG!
const token_hash = searchParams.get('token_hash') || searchParams.get('code'); //THE SUPABASE DOCS ARE WRONG :(!
const type = searchParams.get('type') as EmailOtpType | null;
const next = searchParams.get('next') ?? '/';