• othiagocruz

    othiagocruz

    1 year ago
    with the try catch it works, outputs the error on the interface
  • r

    rp

    1 year ago
    what's the error?
  • othiagocruz

    othiagocruz

    1 year ago
    it was a password missmatch, but when i tried to create an account without the try catch on the init it just hanged and next stopped working
  • r

    rp

    1 year ago
    Have you added something lke this in the pages > api > auth > [[...path]].js file:
    // 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
      );
    }
  • othiagocruz

    othiagocruz

    1 year ago
    exactly that yeah
  • r

    rp

    1 year ago
    What is the response from the API call as seen in the browser's network tab?
  • othiagocruz

    othiagocruz

    1 year ago
    it was blank
  • othiagocruz

    othiagocruz

    1 year ago
    no response, request, nothing
  • r

    rp

    1 year ago
    no request either.. that's odd
  • r

    rp

    1 year ago
    can we do a quick call? It's hard to debug over text.