Bosky
10/29/2020, 10:43 AMhost
and apikey
. Your documentation init mentions this SuperTokensRequest.init({
refreshTokenUrl: "https://api.example.com/session/refresh"
});
Bosky
10/29/2020, 10:43 AMapi.example.com
and where to use apikeyrp
10/29/2020, 10:44 AMapiKey
and the host
string.Bosky
10/29/2020, 10:44 AMrp
10/29/2020, 10:45 AMBosky
10/29/2020, 10:45 AMhttps://supertokens.io/docs/
gives a 404. it should go to a page pointing to choose frontend and backendrp
10/29/2020, 10:45 AMrp
10/29/2020, 10:45 AMBosky
10/29/2020, 10:46 AMBosky
10/29/2020, 10:46 AMBosky
10/29/2020, 10:47 AMrp
10/29/2020, 10:47 AMrp
10/29/2020, 10:47 AMBosky
10/29/2020, 10:48 AMrp
10/29/2020, 10:50 AMBosky
10/29/2020, 10:53 AMBosky
10/29/2020, 10:55 AMrp
10/29/2020, 10:55 AMBosky
10/29/2020, 10:56 AMlet userId = req.body.email;
let jwtPayload = {name: "spooky action at a distance"};
let sessionData = {awesomeThings: ["programming", "javascript", "supertokens"]};
await supertokens.createNewSession(res, userId, jwtPayload, sessionData);
and then email a magic link. How do you suggest serializing, coming up with the magic link?rp
10/29/2020, 10:57 AMrp
10/29/2020, 10:58 AMBosky
10/29/2020, 10:59 AMrp
10/29/2020, 10:59 AMBosky
10/29/2020, 11:00 AMcreateNewSession
Bosky
10/29/2020, 11:00 AMBosky
10/29/2020, 11:01 AMrp
10/29/2020, 11:01 AMcreateNewSession
function returns a session object which has the following info: https://supertokens.io/docs/nodejs/api-reference/session-object/overviewrp
10/29/2020, 11:01 AMMoere
11/01/2020, 2:53 PMrp
11/01/2020, 2:54 PMsupertokens-website