dhatGuy
06/11/2022, 1:17 PMasync function doesSessionExist() {
if (await SuperTokens.doesSessionExist()) {
// user is logged in
console.log("there is a session");
} else {
// user has not logged in yet
}
}
this returns error in react nativerp
06/11/2022, 1:30 PMdhatGuy
06/11/2022, 1:30 PMimport SuperTokens from 'supertokens-react-native';
rp
06/11/2022, 1:31 PMnkshah2
06/11/2022, 1:32 PMdhatGuy
06/11/2022, 1:33 PMimport SuperTokens from "supertokens-react-native";
const apiDomain = "http://192.168.43.75:7000"; // TODO: change url to your own IP address
SuperTokens.init({
apiDomain,
apiBasePath: "/api/auth",
});
nkshah2
06/11/2022, 1:34 PMdhatGuy
06/11/2022, 1:43 PMnkshah2
06/11/2022, 1:44 PMdhatGuy
06/11/2022, 1:46 PMnkshah2
06/11/2022, 1:53 PMdhatGuy
06/11/2022, 1:58 PMnkshah2
06/11/2022, 2:11 PMdhatGuy
06/11/2022, 2:43 PMrp
06/11/2022, 2:59 PMdhatGuy
06/11/2022, 3:14 PMrp
06/11/2022, 3:15 PMdhatGuy
06/11/2022, 3:16 PMappInfo: {
appName: "nsm",
apiDomain: "http://localhost:7000",
websiteDomain: "http://localhost:3000",
apiBasePath: "/api/auth",
websiteBasePath: "/api/auth",
}
rp
06/11/2022, 3:16 PMdhatGuy
06/11/2022, 3:16 PMSession.init({})
rp
06/11/2022, 3:17 PMdhatGuy
06/11/2022, 3:31 PMrp
06/11/2022, 3:33 PM