Google auth stops working when I remove email.
Google auth works fine if the email method is also added in the main.wasp file, but as soon as I remove email, it stops working. It redirects to localhost:3001.
![No description](https://cdn.answeroverflow.com/1167005463519432724/Screenshot_2023-10-26_at_1.12.05_PM.png)
![No description](https://cdn.answeroverflow.com/1167005464031141888/Screenshot_2023-10-26_at_1.11.27_PM.png)
6 Replies
I do not want to use email for login.
Did you check the terminal for errors?
Yes, nothing in the terminal
try restatting your wasp app with cntrl + c and then
wasp start
again
make sure the app is running correctly@Manan it would be great if you could offer a bit more information here!
So, first you had it all working. You had both email and Google, and both worked next to each other, correct?
Then, you removed email&pass. What exactly happened that you found to be problematic after that? You said it redirects to localhost:3001. I see the URL is localhost:3001/auth/google/login . How did you get there? Ideally you would describe something like this:
I go to localhost:3001 in my web browser. That takes me to login page. I choose Google there, and that takes me to localhost:3001/auth/google/login, which doesn't work -> browser says it can't reach this page. I can see thatThen we can really hold onto something and help debug! Otherwise we just don't know enough and are in the dark. Btw I wonder if you should runwasp start
is running successfully in the terminal, and there are no errors either from client or server. I also checked the browser dev console and found following errors: ... . I tried restarting browser with Shift + Crl + R, I tried clearing its cache (cookies, local storage) for localhost:3001. I also tried restarting wasp server by killingwasp start
and running it again. If I enable email&pass again, everything works well. My OS is ..., my browser is ..., ... .
wasp db-migrate dev
, that also might play a role.Right now I'm trying to solve the other problem. https://discord.com/channels/686873244791210014/1167002551711961088
That one is more important right now for the hackathon. I will get into this again and will share more details in a structured format regarding this. For now I've kept the email login as well.