Fix token name

This commit is contained in:
Adrian Obelmejias
2016-02-11 19:51:31 -05:00
parent 2dfa632747
commit 6f34ecf76a
+1 -1
View File
@@ -11,7 +11,7 @@ router.post('/', async (ctx, next) =>
ctx.throw(401)
}
const token = jwt.sign({ id: user.id }, config.tokenSecret)
const token = jwt.sign({ id: user.id }, config.token)
const response = user.toJSON()