1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Create seperate database table for AccessTokens to hide jwt token and tokenId from user

This commit is contained in:
Vishal Banthia 2015-11-26 02:36:09 +09:00
parent 62413b3780
commit 9cb231391a
11 changed files with 97 additions and 71 deletions

View file

@ -352,14 +352,13 @@ module.exports = function(options) {
return dbapi.saveUserAccessToken(user.email, {
title: title
, tokenId: tokenId
, id: tokenId
, jwt: jwt
})
.then(function() {
socket.emit('user.keys.accessToken.generated', {
title: title
, tokenId: tokenId
, jwt: jwt
})
})
})