https://supertokens.com/ logo
#general
Title
# general
r

rp

03/19/2021, 10:03 AM
Have you added something lke this in the pages > api > auth > [[...path]].js file:
Copy code
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import { superTokensNextWrapper } from "supertokens-node/nextjs";
import { middleware } from "supertokens-node";

export default async function superTokens(req, res) {
  return await superTokensNextWrapper(
    async (next) => {
      await middleware()(req, res, next);
    },
    req,
    res
  );
}