hwihwi
04/20/2023, 5:46 PMimport Session from 'supertokens-node/recipe/session';
const session = await Session.getSession(req, res, { sessionRequired: false });
if (session !== undefined) {
let userId = session.getUserId();
}
https://cdn.discordapp.com/attachments/644849840475602944/1098666007234625568/image.png▾
rp
04/20/2023, 5:48 PMhwihwi
04/20/2023, 5:58 PMhttps://cdn.discordapp.com/attachments/1098666007087808723/1098669107408277584/image.png▾
rp
04/20/2023, 5:59 PMhwihwi
04/20/2023, 6:01 PMrp
04/20/2023, 6:01 PMhwihwi
04/20/2023, 6:37 PMrp
04/20/2023, 6:37 PM