mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Create seperate database table for AccessTokens to hide jwt token and tokenId from user
This commit is contained in:
@@ -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
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user