ory / elements

Ory Elements is a component library that makes building login, registration and account pages for Ory a breeze. Check out the components library on Chromatic https://www.chromatic.com/library?appId=63b58e306cfd32348fa48d50
https://ory.sh
Apache License 2.0
84 stars 41 forks source link

Email verification redirect option on certain errors #183

Open Nikola-Milovic opened 4 months ago

Nikola-Milovic commented 4 months ago

Preflight checklist

Ory Network Project

No response

Describe your problem

When receiving errors on email verification code like The code was already used. Please request another code. or when logging in Account not active yet. Did you forget to verify your email address?, I'd expect there to be a link to resend the confirmation code, or something. It would prove to be much nicer UX and a DX since the developer doesn't have to implement it himself. (which can be a bit difficult to fit in since the whole card is managed by @ory/elements

screenshot of the auth error

Describe your ideal solution

There would be a link or a button to resend the verification email when the error specifies that that is necessary

Workarounds or alternatives

Manually implement it somehow

Version

@ory/elements: 0.1.0-beta.16

Additional Context

No response