Don’t need to return anything besides the token
This commit is contained in:
parent
43295ca63f
commit
238b5fdd52
2 changed files with 17 additions and 7 deletions
|
@ -52,11 +52,10 @@ module.exports = function(app) {
|
|||
{
|
||||
expiresInMinutes: 60,
|
||||
issuer: 'bactdb',
|
||||
subject: 'test',
|
||||
subject: user.id,
|
||||
});
|
||||
res.send({
|
||||
'token': token,
|
||||
'user_id': user.id,
|
||||
'token': token
|
||||
});
|
||||
} else {
|
||||
res.status(401).send({'error':'Invalid username or password'});
|
||||
|
|
Reference in a new issue