SurfSense/surfsense_web/app/auth/callback/page.tsx

21 lines
569 B
TypeScript
Raw Normal View History

"use client";
2025-07-27 10:05:37 -07:00
import { Suspense } from "react";
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() {
const t = useTranslations("auth");
2025-07-27 10:05:37 -07:00
return (
<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
);
}