I am having a new error now at iOS only, Supertokens throws this "Please provide a valid domain name":
(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(r))?"http://"+i.host:"https://"+i.host:i.protocol+"//"+i.host}catch(e){}if(t.startsWith("/"))throw Error("Please provide a valid domain name");if(0===t.indexOf(".")&&(t=t.substr(1)),(-1!==t.indexOf(".")||t.startsWith("localhost"))&&!t.startsWith("http://")&&!t.startsWith("https://")){t="https://"+t;try{return new URL(t),e(t,!0)}catch(e){}}throw Error("Please provide a valid domain name")}(e)}},29996:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0
My app info:
const appInfo = {
appName: 'Lokalist Business',
apiDomain: GET_FRONTEND_URL(),
websiteDomain: 'dashboard.lokalist.mobile.app',
apiBasePath: '/api/auth',
websiteBasePath: '/auth',
}
export const GET_FRONTEND_URL = () => {
if (process.env.NEXT_PUBLIC_APP_STAGE === 'production' && process.env.NODE_ENV === 'production') {
return 'https://dashboard.lokalist.nl'
}
if (process.env.NEXT_PUBLIC_APP_STAGE === 'development' && process.env.NODE_ENV === 'production') {
return 'https://staging-dashboard.lokalist.nl'
}
return 'http://localhost:2001'
}
What could it be? The origin is
capacitor://localhost