From 8258b914d7c39b70e07ee04929ceda6dbf77b8ed Mon Sep 17 00:00:00 2001 From: "kody.low" Date: Thu, 8 Feb 2024 11:42:56 -0800 Subject: [PATCH] fix: fix api auth --- apps/gateway-ui/src/GatewayApi.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/gateway-ui/src/GatewayApi.ts b/apps/gateway-ui/src/GatewayApi.ts index e089e8321..199d7b58b 100644 --- a/apps/gateway-ui/src/GatewayApi.ts +++ b/apps/gateway-ui/src/GatewayApi.ts @@ -6,12 +6,9 @@ const SESSION_STORAGE_KEY = 'gateway-ui-key'; export class GatewayApi { private baseUrl: string | undefined = process.env.REACT_APP_FM_GATEWAY_API; - // Tests a provided password, or the one in the environment config, or the one in session storage + // Tests a provided password or the one in session storage testPassword = async (password?: string): Promise => { - const tempPassword = - password || - this.getPassword() || - process.env.REACT_APP_FM_GATEWAY_PASSWORD; + const tempPassword = password || this.getPassword(); if (!tempPassword) { return false;