Skip to content

Commit

Permalink
Merge pull request #372 from Kodylow/fix-api-auth-env
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow authored Feb 8, 2024
2 parents 44b5a65 + df5bb17 commit f4a04ab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/gateway-ui/src/GatewayApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean> => {
const tempPassword =
password ||
this.getPassword() ||
process.env.REACT_APP_FM_GATEWAY_PASSWORD;
const tempPassword = password || this.getPassword();

if (!tempPassword) {
return false;
Expand Down

0 comments on commit f4a04ab

Please sign in to comment.