Moralis Metamask Auth with Next App Route

There is no issue with page route. With Nexjs13 app route, the following script does not work

import { MoralisNextApi } from "@moralisweb3/next";

const options = {
  apiKey: process.env.MORALIS_API_KEY,
  authentication: {
    domain: "amazing.dapp",
    uri: process.env.NEXTAUTH_URL,
    timeout: 120,

const handler = MoralisNextApi(options);

export { handler as GET, handler as POST };

Hi, the package is not made yet to work with next 13 app route since this version is still not in production. When the app route will be the default version the team will update the package