Skip to content

Commit c460f7e

Browse files
Fix api login error (#1157)
* Fix api login error * add console log for qa testing * add semicolon
1 parent 0a05f52 commit c460f7e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/controller/users.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export async function login(request: IRequest, response: Response, next: Functio
2929
response.cookie('token', token, { expires: new Date(tokenObj.exp), domain} );
3030
return response.status(204).json({});
3131
} catch (err) {
32+
console.log(err); // debug
3233
if (process.env.NODE_ENV === 'production') {
3334
bugsnagClient.notify(err);
3435
}

app/config/webpackDevServer.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ module.exports = function(proxy, allowedHost) {
9898
// We do this in development to avoid hitting the production cache if
9999
// it used the same host and port.
100100
// https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
101-
app.use(noopServiceWorkerMiddleware());
101+
app.use(noopServiceWorkerMiddleware('/'));
102102
},
103103
};
104104
};

0 commit comments

Comments
 (0)