Skip to content
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

Repeated email verification refresh calls when the backend is not running #845

Open
porcellus opened this issue Aug 8, 2024 · 0 comments

Comments

@porcellus
Copy link
Collaborator

We are calling user/email/verify GET 5 times when:

  • the user is already logged in
  • hasn't completed email verification
  • loads the email verification page
    image

To resolve, we want to implement 2 improvements:

  1. Skip adding the email verification validator from web-js if we are already adding it in auth-react
  2. Add a global, in-memory cooldown for each refresh function. In the shouldRefresh calls we should check this cooldown by default and limit refresh calls to no more than 1 per second.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant