rp
03/04/2021, 5:53 AMrp
03/04/2021, 5:56 AMthisjust
03/04/2021, 9:14 PMSession.createNewSession
on the backend after using fetch to send my backend the necessary magic.link token, but it's a bit unclear to me which set of supertoken docs apply to me (as someone not using supertokens auth) on the front end.thisjust
03/04/2021, 9:26 PMawait Session.getJWTPayloadSecurely
on the front end, but get Error: No session exists
.thisjust
03/04/2021, 11:48 PMsAccessToken
and sIDRefreshToken
cookies are set, but those are the only ones. Executing fetch
in the console gives me ƒ (url, config) {
return AuthHttpRequest.fetch(url, config);
}
thisjust
03/04/2021, 11:50 PMthisjust
03/05/2021, 12:56 AMthisjust
03/05/2021, 12:59 AMfetch
in the console) but only 2 cookies are showing up, then perhaps that above quote is a clue to the issue I'm having ... but I don't quite understand what it's saying. I have Session.createNewSession
in my serverless function, which gets called as a result of me using fetch
from the front end. Is that correct?rp
03/05/2021, 5:29 AMrp
03/05/2021, 5:31 AMThirdpartyEmailPassword.init
inside the recipeList
.
I'm working on a netlify example, and it should be ready soon. I'll send you a link to that once it's done so you can see how the serverless functions are setup.thisjust
03/05/2021, 5:55 AMthisjust
03/05/2021, 5:56 AMSuperTokens.init({
appInfo: {
appName,
apiDomain: "http://localhost:8888",
websiteDomain: "http://localhost:8888",
apiBasePath: "/auth"
},
recipeList: [
// Not sure if the `{sessionScope: 'localhost'}`
// is necessary, didn't see it in the docs
// But saw it in your convo with Dimitri:
Session.init({sessionScope: 'localhost'})
]
});
thisjust
03/05/2021, 5:57 AMthisjust
03/05/2021, 5:57 AMthisjust
03/05/2021, 5:58 AMsupertokens.init({
supertokens: {
apiKey,
connectionURI,
},
appInfo: {
appName,
apiDomain: "http://localhost:8888",
websiteDomain: "http://localhost:8888",
apiBasePath: "/auth",
},
recipeList: [
Session.init({
// the supertoken docs say to do this:
faunadbClient: new faunadb.Client({
secret: FAUNA_SERVER_KEY,
}),
// but there's a convo in the discord history between you and Dimitri
// that has this instead:
// faunadbSecret: FAUNA_SERVER_KEY,
userCollectionName: "User",
accessFaunadbTokenFromFrontend: true,
}),
],
});
thisjust
03/05/2021, 6:01 AMthisjust
03/05/2021, 6:01 AMrp
03/05/2021, 6:05 AMrp
03/05/2021, 6:05 AMfetch
which calls the createNewSession
function?thisjust
03/05/2021, 6:06 AMthisjust
03/05/2021, 6:08 AMrp
03/05/2021, 6:09 AMthisjust
03/05/2021, 6:09 AMrp
03/05/2021, 6:10 AMthisjust
03/05/2021, 6:12 AMrp
03/05/2021, 6:12 AMthisjust
03/05/2021, 6:13 AMValue
?rp
03/05/2021, 6:14 AMsIRTFrontend
being set. Those are set by the interceptorrp
03/05/2021, 6:14 AMrp
03/05/2021, 6:14 AM