On signup page, once signup is success it shows an "verification email sent" message with a "resend email button"
On login page if the error of the backend is that the email is not verified, it shows the "verification email sent" message with a "resend email button"
Implements the route /account/verify?email=${email}&code=xxxxxxx
Performs an automatic verification attempt using a useEffect
If success redirect to /organization
Else show an error
Resend verification mail mutation is implemented but won't work until implemented on the backend
In addition, it implements specific considerations for dev environments:
On signin page it shows a button to redirect to verify page without having verification code (because is not needed)
It permits empty verification codes on verify page (on dev envs they are not neeeded)
Depends on https://github.com/vocdoni/saas-backend/pull/9/ and needs https://github.com/vocdoni/ui-scaffold/pull/765
It implements the email verification page.
/account/verify?email=${email}&code=xxxxxxx
useEffect
/organization
In addition, it implements specific considerations for dev environments:
An it fixes API function to: