Website Base Path
Front End Change ๐ช
Since the beginning of this guide, you probably noticed that all the front-end routes for SuperTokens widget are prefixed by /auth
. You can change this value in the init
function by setting websiteBasePath
.
SuperTokens.init({
appInfo: {
appName: "yourAppName",
apiDomain: "yourApi",
websiteDomain: "yourWebsite",
websiteBasePath: "/authentication"
}
});
Now, if you navigate to /authentication
, you should see the widget.
Back End Change ๐ซ
You also need to change the websiteBasePath
in your backend code:
SuperTokens.init({
appInfo: {
appName: "yourAppName",
apiDomain: "yourApi",
websiteDomain: "yourWebsite",
websiteBasePath: "/authentication"
}
});