© 2026 Hedgehog Software, LLC
export const auth = betterAuth({ socialProviders: { google: { clientId: process.env.GOOGLE_CLIENT_ID!, clientSecret: process.env.GOOGLE_CLIENT_SECRET!, } }, database: new Pool({ connectionString: process.env.BETTER_AUTH_DB_URL! }), baseURL: "http://localhost:3000", basePath: "/auth" })
export const authClient = createAuthClient({ baseURL: "http://localhost:3000" basePath: "/auth" })
async signInWithGoogle() { console.log('signing in with google') const data = await authClient.signIn.social({ provider: "google" }) }
ERROR [Better Auth]: State not found undefined