I'm expecting the onBeforeLogin hook to fire after every login attempt.
I'm only seeing the onBeforeLogin hook firing after successful logins.
- Clone the repo:
git clone git@github.com:justinvandenberg/wasp-onbeforelogin-hook-example.git
- Set up database:
wasp db migrate-dev
- Run app:
wasp start
- Create a user
- Verify the email using the link in the console
- Log out (if needed)
- Log in with incorrect credentials (you won't see
onBeforeLogin hook fired!in the console) - Log in with correct credentials (you will see see
onBeforeLogin hook fired!in the console)