import { StackHandler } from "@stackframe/stack" import { stackServerApp } from "@/lib/stack-server" // Custom loading component for OAuth callbacks function CustomLoading() { return (
{/* Logo */}
{/* Loading spinner */}
{/* Text */}

Signing you in...

Please wait while we complete your authentication

{/* Fallback link */}

Taking too long?{" "} Return to homepage

) } // Using type assertion for Next.js 16 compatibility export default function Handler(props: { params: Promise<{ stack: string[] }> searchParams: Promise> }) { return ( ) }