bitcoinrippin
01/12/2024, 1:32 AMCannot POST /auth/session/refresh
Then this error when on http://localhost:3000/auth
ERROR
style.toLowerCase is not a function
TypeError: style.toLowerCase is not a function
at Object.hasFontDefined (http://localhost:3000/static/js/bundle.js:82517:26)
Im setting the base path to /auth on the front end and back end
App.js
SuperTokens.init({
appInfo: {
appName: "mywebsitename",
apiDomain: getApiDomain(),
websiteDomain: getWebsiteDomain(),
apiBasePath: "/auth",
websiteBasePath: "/auth",
},
Api-server.js
supertokens.init({
framework: "express",
supertokens: {
connectionURI: configData.superTokens.connectionURI,
apiKey: configData.superTokens.apiKey,
},
appInfo: {
appName: "my website",
apiDomain: configData.apiDomain,
websiteDomain: configData.websiteDomain,
apiBasePath: "/auth",
websiteBasePath: "/auth",
},
Im pretty sure its caused by the 404