supertokens / supertokens-web-js

SuperTokens SDK for vanilla JS for all recipes
Other
58 stars 10 forks source link

fix: emailverification validator refetch times #110

Closed porcellus closed 6 months ago

porcellus commented 6 months ago

Summary of change

Reduced the number of unnecessary email verification checks by fixing the default values for refetchTimeOnFalseInSeconds and maxAgeInSeconds

Related issues

Test Plan

Added test that checks that shouldRefresh returns the right values for:

Documentation changes

N/A, fix only

Checklist for important updates

github-actions[bot] commented 6 months ago

size-limit report 📦

Path Size
lib/build/index.js 26.3 KB (0%)
recipe/emailverification/index.js 26.56 KB (0%)
recipe/emailpassword/index.js 26.4 KB (+0.01% 🔺)
recipe/thirdparty/index.js 27.44 KB (+0.01% 🔺)
recipe/thirdpartyemailpassword/index.js 29.37 KB (0%)
recipe/session/index.js 23.44 KB (0%)
recipe/passwordless/index.js 27.72 KB (0%)
recipe/thirdpartypasswordless/index.js 30.09 KB (+0.01% 🔺)
recipe/userroles/index.js 23.7 KB (0%)
recipe/multitenancy/index.js 26.05 KB (+0.01% 🔺)
recipe/multifactorauth/index.js 26.15 KB (+0.01% 🔺)
recipe/totp/index.js 25.99 KB (0%)