This commit is contained in:
Giovanni Rezcjikov
2026-03-10 20:00:58 +03:00
parent d7615b4eb0
commit 77d429c8ba
31 changed files with 1098 additions and 504 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import { Spinner } from "@/components/ui/spinner";
import { useTranslations } from "next-intl";
import { useEffect, useState } from "react";
import { useSearchParams } from "next/navigation";
import { getSession, Approve } from "@/actions/oauth";
import { fetchSession, Approve } from "@/actions/oauth";
import { Check } from "lucide-react";
import { Skeleton } from "@/components/ui/skeleton";
import Link from "next/link";
@@ -26,7 +26,7 @@ export default function ConsentPage() {
const [isSubmitting, setIsSubmitting] = useState(false);
useEffect(() => {
getSession(sessionToken)
fetchSession(sessionToken)
.then(data => {
if (!data) throw new Error();
setSession(data);