W
Wasp15mo ago
Manan

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
No description
6 Replies
Manan
MananOP15mo ago
I do not want to use email for login.
miho
miho15mo ago
Did you check the terminal for errors?
Manan
MananOP15mo ago
Yes, nothing in the terminal
Vinny (@Wasp)
Vinny (@Wasp)15mo ago
try restatting your wasp app with cntrl + c and then wasp start again make sure the app is running correctly
martinsos
martinsos15mo ago
@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 that wasp 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 killing wasp start and running it again. If I enable email&pass again, everything works well. My OS is ..., my browser is ..., ... .
Then 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 run wasp db-migrate dev, that also might play a role.
Manan
MananOP15mo ago
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.
Want results from more Discord servers?
Add your server