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.

Frontend Integration

Supported frameworks#

React logoVue.js logoAngular logoElectron logoCapacitor.js logoJavascript logo
for mobile apps

For mobile apps, please see the Using your own UI section from the left nav bar

for nextjs

For NextJS apps, please go to the Integrations section from the left nav bar.

Automatic setup using CLI

Run the following command in your terminal.

npx create-supertokens-app@latest --recipe=thirdpartypasswordless

Once this is done, you can skip Step (1) and (2) in this section (see left nav bar) and move directly to setting up the SuperTokens core (Step 3).

Or, you can manually integrate SuperTokens by following the steps below.

Manual setup steps below

1) Install#

npm i -s supertokens-auth-react

2) Call the init function#

How do you want to identify your users?
Only phone numberOnly emailEmail or phone number

3) Setup Routing to show the login UI#

Do you use react-router-dom?
YesNo

4) View the login UI#

You can view the login UI by visiting /auth. You can also see all designs of our pre built UI, for each page on this link.

At this stage, you've successfully integrated your website with SuperTokens. The next section will guide you through setting up your backend.

Looking for older versions of the documentation?
Which UI do you use?
Custom UI
Pre built UI