chunkbanned
BABetter Auth
•Created by chunkbanned on 4/1/2025 in #help
Google auth redirecting to the main site instead of the webpage
I have an issue which I am not experiencing on other projects using better-auth
I have http://localhost:8000 set as BASE_URL under
process.env.BETTER_AUTH_URL
, which is my Express API
where http://localhost:3000 is my Next.js website
But when I run the google sign in, it redirects to https://localhost:3000/api/auth/google instead of my Express backend, any ideas on how to fix this?6 replies