2. Backend config
#
1) Install supertokens packagenpm i supertokens-node
config.js
)#
2) Create a configuration file (- Create a
config.js
file in the root directory of your project. - An example of this file can be found here.
#
3) Create a backend config functionPlease fill the form below to see the code snippet (* = Required)
To learn more about what these properties mean read here.
Your app's name:*

This is the name of your application
API Domain:*

This is the URL of your app's API server.
API Base Path:

SuperTokens will expose it's APIs scoped by this base API path.
Website Domain:*

This is the URL of your website.
Website Base Path:

SuperTokens UI will be shown on this website route.
#
4) Set up your delivery methodimportant
We are working on our own SMS / email delivery service which will make this step much easier. Until then, you have to send the SMS / emails yourself.
The See next step
comment above is a placeholder where you must provide a function that will send the user the information necessary to log in or sign up:
How do you want to identify your users?
Only phone numberOnly emailEmail or phone number