Skip to content

yerffejytnac/next-with-hasura-auth

Repository files navigation

next-with-hasura-auth

https://auth.tremendous.dev

Quickstart

  1. Deploy a new Hasura instance (e.g. Docker/Railway)
  2. Generate a secret (e.g. 21a44cd781c6567e2f5b6b950558df85)
  3. Add the following environment variables to Hasura:
HASURA_GRAPHQL_ADMIN_SECRET=password
HASURA_GRAPHQL_JWT_SECRET`={"type":"HS256" "key":"21a44cd781c6567e2f5b6b950558df85"}
  1. Copy .env.example to .env file
  2. Update DATABASE_ and EMAIL_ variables to match your Hasura deployment and SendGrid API keys. Ensure NEXTAUTH_SECRET equals the same value from #2 (e.g. NEXTAUTH_SECRET=21a44cd781c6567e2f5b6b950558df85. Update HASURA_GRAPHQL_API_HOST and HASURA_GRAPHQL_ADMIN_SECRET with values from your Hasura deployment.