edwinn1337
01/25/2023, 9:27 AMjs
export default async function token(req: NextApiRequest & Request, res: NextApiResponse & Response) {
// we first verify the session
await superTokensNextWrapper(async next => verifySession()(req, res, next), req, res)
const userId = req.session.getUserId()
anyone got a elegant way to get the session type ?rp_st
01/25/2023, 9:29 AMedwinn1337
01/25/2023, 9:32 AMedwinn1337
01/25/2023, 9:32 AMedwinn1337
01/25/2023, 9:32 AMrp_st
01/25/2023, 9:32 AM