Login does not work after verifying with the link
Wasp version: 0.13.2
The problem happens both on local development and production mode in Fly.io
The password set on Sign Up is not working after verifying in the link. But it works if I reset the password.
I used the command
wasp new
with the option [3]
as a head start. It worked in the beginning but it stopped.![No description](https://cdn.answeroverflow.com/1258491709168291941/image.png)
5 Replies
Hi @7Nic. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Wohooo @7Nic, you just became a Waspeteer level 2!
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, I can guide you through some steps to debug the issue.
Firstly, ensure that you have set the
SKIP_EMAIL_VERIFICATION_IN_DEV
environment variable to true
in your .env.server
file during development. This allows you to skip the email verification step, which can be useful when developing your app or writing automated tests.
Source (https://wasp-lang.dev/docs/auth/email#email-verification-flow)
If the issue persists, it might be related to the database. There was a similar issue discussed in a Discord support thread (https://discord.com/channels/686873244791210014/1217295340785635418) where running database migrations and redeploying solved the problem.
If none of the above solutions work, I recommend checking the Wasp Github issues (https://github.com/wasp-lang/wasp/issues) for similar problems or creating a new issue to get help from the Wasp community.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @7Nic, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?The env var bot suggested is not really necessary for the correct function of the auth flow. It's useful, but not necessary.
Ok, please do this for me:
1. Delete all the
User
records in the DB studio
2. Create a new account
3. Verify the email
4. Try to login
(use a simple password 12345678 to prevent any input errors 😄 )
Let me know if you see any errors in the server log in the terminal.Tried that, didn't work. I was using this exact password before hahaha
Here are the logs of server, no errors, only status 401 when trying to log in.
But as I said, if I reset the password using the reset flow, it works
![No description](https://cdn.answeroverflow.com/1258787641927663678/image.png)