Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Mar 11, 2024
1 parent 34f0e59 commit eaa5570
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/auth/httpAuthMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ module.exports = {
if (req.session.ffSession) {
next()
} else if (req.get('Authorization')?.startsWith('Bearer')) {
// need to make a HTTP request against the forge platform to check
// the token. Should we cache the token to reduce round trip on every
// request?
// We should include the Project ID and the path along with the token
// to be checked
// to be checked to allow scoping tokens
const token = req.get('Authorization').split(' ')[1]
const cacheHit = httpTokenCache[token]
if (cacheHit) {
Expand Down

0 comments on commit eaa5570

Please sign in to comment.