mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 17:22:04 -07:00
Editing comments and notes
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
/*
|
||||
CT 2/4/20 Note: This library handles anonymous and Basic auth. This library
|
||||
can be phased out with the chage to JWT tokens and the new rate-limit library.
|
||||
|
||||
Handle authorization for bypassing rate limits.
|
||||
|
||||
1) Default is 'Anonymous Authentication', which unlocks the freemimum tier by
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
/*
|
||||
This is a middleware library for handling and processing JWT tokens.
|
||||
|
||||
This middleware inspects the request header for a JWT token.
|
||||
If found, will populate req.locals.jwtToken with the JWT token.
|
||||
*/
|
||||
|
||||
@@ -159,7 +159,7 @@ const routeRateLimit = async function(req, res, next) {
|
||||
uniqueRateLimits[route](req, res, next)
|
||||
}
|
||||
|
||||
// This function returns the an object with proLimit and apiLevel properties.
|
||||
// This function returns an object with proLimit and apiLevel properties.
|
||||
// It does fine-grane analysis on the data coming from the auth servers and
|
||||
// uses its output to adjust rate limits on-the-fly based on the users
|
||||
// permission level.
|
||||
|
||||
Reference in New Issue
Block a user