Skip to main content

Terms of service & Privacy policy links

You can provide a Privacy policy and Terms of service link which will render the following text on the sign up page:

import SuperTokens from "supertokens-auth-react";
import ThirdPartyPasswordless from "supertokens-auth-react/recipe/thirdpartypasswordless";
import Session from "supertokens-auth-react/recipe/session";

SuperTokens.init({
appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
},
recipeList: [
ThirdPartyPasswordless.init({
contactMethod: "EMAIL_OR_PHONE", // This example will work with any contactMethod.
signInUpFeature: {
termsOfServiceLink: "https://example.com/terms-of-service",
privacyPolicyLink: "https://example.com/privacy-policy"
}
}),
Session.init({ /* ... */ })
]
});
Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI