Skip to main content

If you are using our backend SDK that is lesser than the following versions, please visit the older documentation link here.

Changing email / SMS resend time interval


This limit is only enforced on the client-side. For API rate-limiting please check out the Advanced customizations section.

You can set resendEmailOrSMSGapInSeconds to establish a minimum delay before the frontend allows the user to click the "Resend" button.

import SuperTokens from "supertokens-auth-react";
import Passwordless from "supertokens-auth-react/recipe/passwordless";
import Session from "supertokens-auth-react/recipe/session";

appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
recipeList: [
contactMethod: "EMAIL_OR_PHONE", // This example will work with any contactMethod.
signInUpFeature: {
// The default value is 15 seconds
resendEmailOrSMSGapInSeconds: 60,
Session.init({ /* ... */ })
Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI