Skip to content

Commit

Permalink
Merge pull request #47 from Chia-Network/fix/apikey
Browse files Browse the repository at this point in the history
fix: add api key to signin from local
  • Loading branch information
TheLastCicada authored Mar 12, 2024
2 parents 47eb1ce + d69ccad commit 55aeb1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/store/actions/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ export const signInFromLocalStorage = () => {
try {
const response = await fetch(`${serverAddress}/v1/organizations`, {
method: 'HEAD',
headers: {
'Content-Type': 'application/json',
'x-api-key': apiKey,
},
});
if (response.status !== 200) {
console.error(`Server returned status: ${response.status}`);
Expand Down

0 comments on commit 55aeb1b

Please sign in to comment.