How to pass JWT to Hasura that is depoyed to Render?

i have Hasura GraphQL engine deployed in Render. i want to pass Jwt token to Hasura.
How can i do it?
can i pass JWT token through render.yaml file? if yes how?

This is my Render.yaml file looks

services:
- type: web
  name: hasura
  env: docker
  autoDeploy: false
  healthCheckPath: /healthz
  envVars:
  - key: HASURA_GRAPHQL_METADATA_DATABASE_URL
    fromDatabase:
      name: hasura
      property: connectionString
  - key: HASURA_GRAPHQL_ENABLE_CONSOLE
    value: true
  - key: PORT
    value: 10000
# for your Hasura instance. The value is visible under
# Environment on the Render dashboard.
  - key: HASURA_GRAPHQL_ADMIN_SECRET
    generateValue: true
databases:
- name: hasura

Hi,

I’m not overly familiar with Harusa, but their docs have a section on how to enable & auth with JWT: https://hasura.io/docs/latest/auth/authentication/jwt/

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.