Skip to main content

API Base Path

Step 1) Back End Change#

The default apiBasePath is /auth. If you don't like that, or if you need to change it to make is similar to your other routes, you can do so by setting the apiBasePath config:

SuperTokens.init({    appInfo: {        appName: "yourAppName",        apiDomain: "yourApi",        websiteDomain: "yourWebsite",        apiBasePath: "/api/v3/auth"     }});

Step 2) Front End Change#

You also need to change the apiBasePath in your frontend code:

SuperTokens.init({    appInfo: {        appName: "yourAppName",        apiDomain: "yourApi",        websiteDomain: "yourWebsite",        apiBasePath: "/api/v3/auth"    }});