API Base Path
Back End Change 📫
You can change the API base path for the SuperTokens middleware
to fit with your current API path structure by setting apiBasePath
:
SuperTokens.init({
appInfo: {
appName: "yourAppName",
apiDomain: "yourApi",
websiteDomain: "yourWebsite",
apiBasePath: "/api/v3/auth"
}
});
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"
}
});