edwinn1337
js 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()
rp_st
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).