2026-01-24 19:42:07 +05:30
|
|
|
"use client";
|
|
|
|
|
|
2025-07-27 10:05:37 -07:00
|
|
|
import { Suspense } from "react";
|
|
|
|
|
import TokenHandler from "@/components/TokenHandler";
|
2025-04-07 23:47:06 -07:00
|
|
|
|
|
|
|
|
export default function AuthCallbackPage() {
|
2026-01-25 16:15:25 +05:30
|
|
|
// Suspense fallback returns null - the GlobalLoadingProvider handles the loading UI
|
|
|
|
|
// TokenHandler uses useGlobalLoadingEffect to show the loading screen
|
2025-07-27 10:05:37 -07:00
|
|
|
return (
|
2026-01-25 16:15:25 +05:30
|
|
|
<Suspense fallback={null}>
|
2026-01-24 19:42:07 +05:30
|
|
|
<TokenHandler
|
|
|
|
|
redirectPath="/dashboard"
|
|
|
|
|
tokenParamName="token"
|
|
|
|
|
storageKey="surfsense_bearer_token"
|
|
|
|
|
/>
|
|
|
|
|
</Suspense>
|
2025-07-27 10:05:37 -07:00
|
|
|
);
|
|
|
|
|
}
|