From 0acaa8c5877d2d3df7d46072bdfac7d7bebd65d4 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 14 Mar 2024 14:22:55 +0100 Subject: [PATCH] default to hidden signin&signup buttons --- presenter/.env.dist | 2 ++ presenter/src/env.ts | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/presenter/.env.dist b/presenter/.env.dist index fabf66a9f..5988207c8 100644 --- a/presenter/.env.dist +++ b/presenter/.env.dist @@ -1,4 +1,6 @@ # AUTH +# PUBLIC_ENV__AUTH__AUTHORITY and PUBLIC_ENV__AUTH__AUTHORITY_SIGNUP_URI +# are not default values since the default is to hide the signin/signup buttons PUBLIC_ENV__AUTH__AUTHORITY="http://localhost:9000/application/o/dreammallearth/" PUBLIC_ENV__AUTH__AUTHORITY_SIGNUP_URI="http://localhost:9000/if/flow/default-source-enrollment/" PUBLIC_ENV__AUTH__AUTHORITY_SIGNOUT_URI="http://localhost:9000/if/flow/dreammallearth-invalidation-flow/" diff --git a/presenter/src/env.ts b/presenter/src/env.ts index 3d0b74e2e..52124b7ea 100644 --- a/presenter/src/env.ts +++ b/presenter/src/env.ts @@ -1,8 +1,6 @@ const AUTH = { - AUTHORITY: (import.meta.env.PUBLIC_ENV__AUTH__AUTHORITY ?? - 'http://localhost:9000/application/o/dreammallearth/') as string, - AUTHORITY_SIGNUP_URI: (import.meta.env.PUBLIC_ENV__AUTH__AUTHORITY_SIGNUP_URI ?? - 'http://localhost:9000/if/flow/default-source-enrollment/') as string, + AUTHORITY: (import.meta.env.PUBLIC_ENV__AUTH__AUTHORITY ?? '') as string, + AUTHORITY_SIGNUP_URI: (import.meta.env.PUBLIC_ENV__AUTH__AUTHORITY_SIGNUP_URI ?? '') as string, AUTHORITY_SIGNOUT_URI: (import.meta.env.PUBLIC_ENV__AUTH__AUTHORITY_SIGNOUT_URI ?? 'http://localhost:9000/if/flow/dreammallearth-invalidation-flow/') as string, CLIENT_ID: (import.meta.env.PUBLIC_ENV__AUTH__CLIENT_ID ??