mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 15:55:16 +02:00
Create seperate database table for AccessTokens to hide jwt token and tokenId from user
This commit is contained in:
@@ -8,17 +8,18 @@ module.exports = {
|
||||
indexFunction: function(user) {
|
||||
return user('adbKeys')('fingerprint')
|
||||
}
|
||||
, accessTokens: {
|
||||
indexFunction: function(user) {
|
||||
return user('accessTokens')('tokenId')
|
||||
}
|
||||
}
|
||||
, options: {
|
||||
multi: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
, accessTokens: {
|
||||
primaryKey: 'id'
|
||||
, indexes: {
|
||||
email: null
|
||||
}
|
||||
}
|
||||
, vncauth: {
|
||||
primaryKey: 'password'
|
||||
, indexes: {
|
||||
|
||||
Reference in New Issue
Block a user