To use Ory with Hasura and Next.js, you'll need to integrate Ory's authentication into your Next.js application and then configure Hasura to use Ory for authentication. Here's a high-level overview of the process: 1.
Integrate Ory authentication into Next.js: Follow the instructions in the [Next.js integration guide](
https://www.ory.sh/docs/getting-started/integrate-auth/nextjs) to set up Ory authentication in your Next.js application. This includes installing the necessary packages, setting up the API route, and configuring your environment variables. 2.
Configure Hasura to use Ory for authentication: You'll need to set up Hasura to use Ory as the authentication provider. This typically involves configuring Hasura to use JWT tokens issued by Ory and setting up the necessary environment variables. Unfortunately, the provided extracts do not contain specific information on integrating Ory with Hasura. However, you can refer to the [Hasura documentation on authentication](
https://hasura.io/docs/latest/graphql/core/auth/authentication/index.html) and the [Ory documentation](
https://www.ory.sh/docs) to get more information on how to set up this integration.