Skip to content

Commit

Permalink
fix: add api key to signin from local
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Mar 12, 2024
1 parent 47eb1ce commit d69ccad
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 d69ccad

Please sign in to comment.