---
title: Terms of service & Privacy policy links
description: Add Terms of Service and Privacy Policy links to your sign-up page.
sidebar:
  order: 60
---

## Overview

You can provide a Privacy policy and Terms of service link which renders the following text on the sign up page:
- Provided both links: "By signing up, you agree to the [Terms of Service](./toc-privacypolicy) and [Privacy Policy](./toc-privacypolicy)"
- Provided only Terms of service link: "By signing up, you agree to the [Terms of Service](./toc-privacypolicy)"
- Provided only Privacy policy link: "By signing up, you agree to the [Privacy Policy](./toc-privacypolicy)"

## Before you start

:::warning
This feature is only applicable to React apps that use the prebuilt UI.
:::


## Example

<CodeGroup group="frontend-prebuilt-ui">
<Tab title="Reactjs" value="reactjs">
```tsx
import SuperTokens from "supertokens-auth-react";

SuperTokens.init({
  appInfo: {
    apiDomain: "...",
    appName: "...",
    websiteDomain: "...",
  },
  termsOfServiceLink: "https://example.com/terms-of-service",
  privacyPolicyLink: "https://example.com/privacy-policy",
  recipeList: [
    /* ... */
  ],
});
```
</Tab>
<Tab title="Angular" value="angular">
```tsx check=false reason="pre-built UI globals are provided by the host framework"
// this goes in the auth route config of your frontend app (once the pre-built UI script has been loaded)

supertokensUIInit({
  appInfo: {
    apiDomain: "...",
    appName: "...",
    websiteDomain: "...",
  },
  termsOfServiceLink: "https://example.com/terms-of-service",
  privacyPolicyLink: "https://example.com/privacy-policy",
  recipeList: [
    /* ... */
  ],
});
```
</Tab>
</CodeGroup>
