fixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { getSession } from "@/actions/oauth";
|
||||
import { fetchSession } from "@/actions/oauth";
|
||||
import { isRedirectError } from "next/dist/client/components/redirect-error";
|
||||
import { cookies } from "next/headers";
|
||||
import { redirect } from "next/navigation";
|
||||
@@ -14,7 +14,7 @@ export default async function OAuthPage({
|
||||
const session = (await searchParams).session as string | undefined;
|
||||
if (!session) redirect("/oauth/error");
|
||||
|
||||
const data = await getSession(session);
|
||||
const data = await fetchSession(session);
|
||||
if (!data) redirect("/oauth/error");
|
||||
|
||||
const store = await cookies();
|
||||
|
||||
Reference in New Issue
Block a user