Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon authored Jul 18, 2024
1 parent 0b9ecd4 commit c5cc001
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Store/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ const Store = () => {
);
if (!adminURL)
throw new Error("Please provide a link to your chris-admin url");
if (!username || !password)
throw new Error("Please provide both username and password");


const client = ChrisAPIClient.getClient();
const adminCredentials = btoa(`${username.trim()}:${password.trim()}`); // Base64 encoding for Basic Auth
const nonAdminCredentials = `Token ${client.auth.token}`;
Expand Down

0 comments on commit c5cc001

Please sign in to comment.