nazzrrg
05/02/2022, 10:25 PMporcellus
05/02/2022, 10:26 PMnazzrrg
05/02/2022, 10:31 PMporcellus
05/02/2022, 10:33 PMsFrontToken
and sIRTFrontend
?nazzrrg
05/02/2022, 10:33 PMsIRTFrontend
that one I do. value is removeporcellus
05/02/2022, 10:36 PMnazzrrg
05/02/2022, 10:38 PMporcellus
05/02/2022, 10:38 PMnazzrrg
05/02/2022, 10:38 PMporcellus
05/02/2022, 10:42 PMƒ fetch() { [native code] }
or something like this the init didn't actually go throughnazzrrg
05/02/2022, 10:46 PMif (await supertokens.doesSessionExist()) {
console.log("123");
}
porcellus
05/02/2022, 10:47 PMnazzrrg
05/02/2022, 10:48 PMsFrontToken
porcellus
05/02/2022, 10:49 PMnazzrrg
05/02/2022, 10:49 PMporcellus
05/02/2022, 10:50 PMnazzrrg
05/02/2022, 10:52 PMporcellus
05/02/2022, 10:52 PMnazzrrg
05/02/2022, 10:53 PMconst response = await fetch("http://localhost:1337/api/auth/authorisationurl?thirdPartyId=google",
{
method: "GET",
headers: {
rid: "thirdparty"
}
}
);
let urlObj = new URL((await response.json())["url"])
urlObj.searchParams.append("redirect_uri", "http://localhost:1337/auth/callback/google");
let url = urlObj.toString();
window.location.replace(url);
porcellus
05/02/2022, 10:58 PMnazzrrg
05/02/2022, 11:00 PMporcellus
05/02/2022, 11:00 PMnazzrrg
05/02/2022, 11:00 PMporcellus
05/02/2022, 11:01 PMconsole.log(fetch)
if it says ƒ fetch() { [native code] }
or something like this the init didn't happennazzrrg
05/02/2022, 11:01 PMporcellus
05/02/2022, 11:02 PMnazzrrg
05/02/2022, 11:03 PMporcellus
05/02/2022, 11:04 PMnazzrrg
05/02/2022, 11:05 PMsFrontToken
nowporcellus
05/02/2022, 11:07 PM