W
Wasp-lang•3mo ago
7Nic

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
5 Replies
kapa.ai
kapa.ai•3mo ago
Hi @7Nic. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
MEE6
MEE6•3mo ago
Wohooo @7Nic, you just became a Waspeteer level 2!
kapa.ai
kapa.ai•3mo ago
---------------------- 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.
.env.server
SKIP_EMAIL_VERIFICATION_IN_DEV=true
.env.server
SKIP_EMAIL_VERIFICATION_IN_DEV=true
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?
miho
miho•3mo ago
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.
7Nic
7Nic•3mo ago
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
Want results from more Discord servers?
Add your server