import { Loader2 } from 'lucide-react' import { useRouter } from 'next/router' import { useEffect } from 'react' import { InlineLink } from '@/components/ui/InlineLink' import { auth } from '@/lib/gotrue' export const SignInPartner = () => { const router = useRouter() useEffect(() => { ;(async () => { const params = new URLSearchParams(window.location.hash.substring(1)) const partner = params.get('partner') const token = params.get('id_token') const { data } = await auth.getSession() if (!data.session && partner && token) { try { await auth.signInWithIdToken({ provider: partner, token }) } finally { router.replace({ pathname: '/sign-in-mfa' }) } } else { router.replace({ pathname: '/sign-in' }) } })() }, []) return (

Signing in to Briven Dashboard

By continuing, you agree to Briven’s{' '} Terms of Service {' '} and{' '} Privacy Policy .

) }