refactor: Replicate Drop's authentication system exactly

This commit is contained in:
Usman Baig
2026-01-16 14:11:14 +01:00
parent b66f367c94
commit 0c3fd5f766
4 changed files with 53 additions and 38 deletions

View File

@@ -1,14 +1,13 @@
'use client'
import { useEffect } from 'react'
import { initiateOAuthFlow } from '@/lib/api/oauth'
import { initiateSignupFlow } from '@/lib/api/oauth'
import LoadingOverlay from '@/components/LoadingOverlay'
export default function SignupPage() {
useEffect(() => {
// * Immediately initiate OAuth flow when page loads
// * The auth service will handle showing signup vs login
initiateOAuthFlow()
// * Immediately initiate signup flow when page loads
initiateSignupFlow()
}, [])
return (