feat: jwt renew via graphql + users create/authorize UI

This commit is contained in:
Nicolas Giard committed 2018-10-13 23:29:48 -04:00
1 parent 3caa842d18
commit 14e34d4346
12 files changed
+499 -203

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ module.exports = {
// Try headers, otherwise cookies for response
if (req.get('content-type') === 'application/json') {
res.headers('new-jwt', newToken.token)
res.set('new-jwt', newToken.token)
} else {
res.cookie('jwt', newToken.token, { expires: moment().add(365, 'days').toDate() })
}