We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5cdc82 commit 552abfcCopy full SHA for 552abfc
1 file changed
src/launcher_auth.js
@@ -102,6 +102,9 @@ async function account_login(req, res) {
102
req.body.username,
103
req.body.password,
104
);
105
+ res.status(200).json(
106
+ { "auth_token": authToken }
107
+ );
108
} catch (e) {
109
console.log("Login failed with error " + e.message);
110
if (e.message == "link_account") {
@@ -111,7 +114,7 @@ async function account_login(req, res) {
111
114
error_details: "link_account",
112
115
});
113
116
} else {
- req.status(401).json({
117
+ res.status(401).json({
118
error: 401,
119
error_msg: e.message,
120
0 commit comments