createAuthClient from Better Auth.authClient.signIn.social({ provider: 'google', callbackURL: '/profile' }) on the frontend./api/auth/* routes are properly handled in the backend using toNodeHandler.localhost:3000 (frontend) and localhost:5000 (backend).