-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a feature to check the validity and expiry of verificationId to confirm the email through an API. #2915
Comments
Thanks for the request @dany13gd. If we added an API for this -what type of information you are you looking for? Just a We could consider adding support for Or a new API such as |
Thank you @robotdan for the prompt response. Getting a 200 response would be great, but if you could add the TTL to the response it would be even better. This will allow for better management of email verification and for the user to decide whether to look for the email in their inbox or decide to forward an email. |
But the idea would be to just check that the verificationId is still valid, meaning that if you go and look for your email with the verificationId it can be used. This seems to be a better option: |
Or @robotdan you could set that variable in the user info too, example:
That way we can know if the verificationId is still valid. |
Problem
Currently, there is no way to check the validity and expiration of verificationId via an API. The only way to know if it is invalid or expired is via the 404 response by hitting POST /api/user/verify-email/{verificationId}. However, it is important to note that this method consumes the verificationId, meaning you will not be able to use it again for actual email verification. Therefore, this approach is not ideal for all use cases.
Solution
It would be great if FusionAuth could add a feature to check the validity and expiration of verificationId via an API to improve the unverified email workflow.
The text was updated successfully, but these errors were encountered: