2026-01-24 19:42:07 +05:30
|
|
|
"use client";
|
|
|
|
|
|
2025-07-27 10:05:37 -07:00
|
|
|
import { Suspense } from "react";
|
2026-01-24 19:42:07 +05:30
|
|
|
import { useTranslations } from "next-intl";
|
|
|
|
|
import { UnifiedLoadingScreen } from "@/components/ui/unified-loading-screen";
|
2025-07-27 10:05:37 -07:00
|
|
|
import TokenHandler from "@/components/TokenHandler";
|
2025-04-07 23:47:06 -07:00
|
|
|
|
|
|
|
|
export default function AuthCallbackPage() {
|
2026-01-24 19:42:07 +05:30
|
|
|
const t = useTranslations("auth");
|
|
|
|
|
|
2025-07-27 10:05:37 -07:00
|
|
|
return (
|
2026-01-24 19:42:07 +05:30
|
|
|
<Suspense fallback={<UnifiedLoadingScreen variant="default" message={t("processing_authentication")} />}>
|
|
|
|
|
<TokenHandler
|
|
|
|
|
redirectPath="/dashboard"
|
|
|
|
|
tokenParamName="token"
|
|
|
|
|
storageKey="surfsense_bearer_token"
|
|
|
|
|
/>
|
|
|
|
|
</Suspense>
|
2025-07-27 10:05:37 -07:00
|
|
|
);
|
|
|
|
|
}
|