CodeWithAloha / HIERR

A Human-Centered Digital Engagement Process for the Hawai‘i Economic Recovery & Resilience Project with the State Office of Planning & Sustainable Development
https://hierr.vercel.app/
11 stars 7 forks source link

Multiple sign-in emails being sent #205

Open tyliec opened 7 months ago

tyliec commented 7 months ago

Describe the bug

During the sign-in process, the following screen is presented to the user:

Image

If an email is inputted and the "Sign in with Email" button is pressed more than once in quick time frame, multiple sign-in emails are sent.

Image

Expected behavior

Multiple emails cannot be sent from this screen.

avenmia commented 7 months ago

I don't think we have control over the email double send at the moment. It can be fixed if we redo that sign in page, but the risk of breaking sign in is too high this late. The page exists in node_modules/next-auth/src/core/pages/sign-in.tsx. You can customize your own sign-in page but have to handle some of the callbacks and redirects yourself which is a pain. This could be addressed if #126 is fixed