Compare commits

..
6 Commits
Author SHA1 Message Date
Chris Troutner 4d3adab9e0 Merge pull request #156 from Permissionless-Software-Foundation/ct-unstable
fix(jwt): A little more jwt debugging
2021-08-07 12:16:21 -07:00
Chris Troutner 91f06b6311 Merge branch 'master' into ct-unstable 2021-08-07 12:14:23 -07:00
Chris Troutner 2fc175d818 fix(jwt): A little more jwt debugging 2021-08-07 12:14:09 -07:00
Chris Troutner 731861cb1d Merge pull request #155 from Permissionless-Software-Foundation/ct-unstable
fix(rate limits): Digging deeper into rate limit debugging
2021-08-07 11:55:28 -07:00
Chris Troutner 9a01f5ffe6 Merge branch 'master' into ct-unstable 2021-08-07 11:45:53 -07:00
Chris Troutner c62c515474 fix(rate limits): Digging deeper into rate limit debugging 2021-08-07 11:45:42 -07:00
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ const getTokenFromHeaders = (req, res, next) => {
if (authStr.split(' ')[0] === 'Token') { if (authStr.split(' ')[0] === 'Token') {
const token = authStr.split(' ')[1] const token = authStr.split(' ')[1]
// console.log(`JWT found: ${token}`) console.log(`JWT found: ${token}`)
// Create the req.locals property if it does not yet exist. // Create the req.locals property if it does not yet exist.
if (!req.locals) { if (!req.locals) {
+3 -1
View File
@@ -221,7 +221,9 @@ class RateLimits {
// should be returned by the middleware. // should be returned by the middleware.
async trackRateLimits (req, res, jwtToken) { async trackRateLimits (req, res, jwtToken) {
const debugInfo = { const debugInfo = {
jwtToken jwtToken,
userObj: req.body.usrObj,
locals: req.locals
} }
// Anonymous rate limits are used by default. // Anonymous rate limits are used by default.