stevie_80460
11/11/2023, 8:28 AMconst apiBasePath = "/api/auth/";
export const websiteDomain = `http://localhost:${port}`;
export const appInfo = {
appName: "SuperTokens Demo App",
websiteDomain,
apiDomain: websiteDomain,
apiBasePath,
websiteBasePath: "/secure",`
};
I've tweaked my main public index.js page to ignore
Session.Error.UNAUTHORISED
so I still have access to the session and user if there is one.
If the user is not logged in I have a login button on the public index.js page
async function loginClicked() {
router.push("/secure");
}
That triggers the /secured/index.js page. But that does not redirect to the login prompts - just returns a blank page.
Any ideas on what I've misconfigured?rp_st
11/11/2023, 8:50 AMrp_st
11/11/2023, 8:51 AMstevie_80460
11/11/2023, 9:27 AMstevie_80460
11/11/2023, 9:28 AMstevie_80460
11/13/2023, 7:56 AMcreateUser
function in the 2nd article above. I assume that one goes in a module in my own /api/auth
?rp_st
11/13/2023, 8:07 AMstevie_80460
11/13/2023, 8:38 AMcreateUser
for the invite - I guess I need to go back and do a bit of reading and setup about creating admin users. Then call that funtion on my own API?stevie_80460
11/13/2023, 8:40 AMrp_st
11/13/2023, 8:56 AMPasswordless.signInUp
(it's there in the second link)rp_st
11/13/2023, 8:57 AMisEmailAllowed
is only called if the user does not exist already.stevie_80460
11/13/2023, 9:29 AMrp_st
11/13/2023, 9:55 AMstevie_80460
11/13/2023, 9:57 AMrp_st
11/13/2023, 9:58 AMstevie_80460
11/13/2023, 10:01 AM