From f944918beb73f3f35ed2bec180f34ae9b5c2bfc5 Mon Sep 17 00:00:00 2001 From: Justin Shrake Date: Thu, 4 Mar 2021 06:19:49 -0800 Subject: [PATCH] Set JWT_DEFAULT_GROUP_NAME in docker-compose With the current docker-compose configuration, the JWT issued by gotrue contains an empty role string. Specifying `GOTRUE_DEFAULT_GROUP_NAME: "authenticated"` ensures that the JWT contains a role string with value "authenticated", which matches one of the created roles in docker/postgres/00-initial-schema.sql. Closes https://github.com/supabase/supabase/issues/804 --- docker/docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index ca81429fc7c..90af994e953 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -16,6 +16,7 @@ services: environment: GOTRUE_JWT_SECRET: super-secret-jwt-token GOTRUE_JWT_EXP: 3600 + GOTRUE_JWT_DEFAULT_GROUP_NAME: authenticated GOTRUE_DB_DRIVER: postgres DB_NAMESPACE: auth API_EXTERNAL_URL: localhost