Skip to content

Commit 16af9ac

Browse files
committed
fix(Express): properly format basic auth creds
previously, some object shorthand was being done, which caused the credential object to be improperly nested under a "token" key. this caused the frontend code to pass an object instead of the actual api key, which broke all websocket connections.
1 parent 03634fb commit 16af9ac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ app.get('/api/v1/credentials', (req, res, next) => {
6060
serviceUrl,
6161
};
6262
} else {
63-
credentials = {
64-
token,
65-
serviceUrl,
66-
};
63+
credentials = token;
6764
}
6865
res.json(credentials);
6966
}

0 commit comments

Comments
 (0)