mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Add auth middleware in api unit. Now only authorized user can access api unit
This commit is contained in:
@@ -329,4 +329,8 @@ dbapi.loadAccessTokens = function(email) {
|
||||
}))
|
||||
}
|
||||
|
||||
dbapi.loadAccessToken = function(id) {
|
||||
return db.run(r.table('accessTokens').get(id))
|
||||
}
|
||||
|
||||
module.exports = dbapi
|
||||
|
||||
Reference in New Issue
Block a user