mirror of https://github.com/buster-so/buster.git
Update route.ts
This commit is contained in:
parent
85d5fb8f2b
commit
04daeaec81
|
@ -6,7 +6,7 @@ import { redirect } from 'next/navigation';
|
||||||
|
|
||||||
export async function GET(request: NextRequest) {
|
export async function GET(request: NextRequest) {
|
||||||
const { searchParams } = new URL(request.url);
|
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 type = searchParams.get('type') as EmailOtpType | null;
|
||||||
const next = searchParams.get('next') ?? '/';
|
const next = searchParams.get('next') ?? '/';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue