supertokens-auth-react icon indicating copy to clipboard operation
supertokens-auth-react copied to clipboard

Repeated email verification refresh calls when the backend is not running

Open porcellus opened this issue 1 year ago • 0 comments

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.

porcellus avatar Aug 08 '24 16:08 porcellus