Error guide
After someone signs in or clicks the email link, the auth service sends them to an address. If that address isn't on its allowed list, it sends them to the default (the Site URL) instead, which may be the login page, a preview address or localhost.
emailRedirectTo or redirectTo. A fixed address there, such as http://localhost:3000, sends every user to that address. Using the address the app is running on (window.location.origin) avoids that, as long as that address is also on the allowed list.https:// and any www.Practice app: in one of my practice apps, where I planted this fault to test my checks, the sign-in link pointed at a local test address (localhost), so the email link would have sent real users to an address that only works on the developer's computer. The fix was to build the link from the address the app is running on.
I'll show you what's wrong, on video, within 24 hours. Free.
Please don't put passwords or keys in the form.