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:
parent
62413b3780
commit
9cb231391a
11 changed files with 97 additions and 71 deletions
|
@ -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
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue