ok in that case - please suggest how you would imp...
# general
b
ok in that case - please suggest how you would implement the following. user enters an email. I use your
Copy code
let 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?