[fix] Fix a race condition in the authorization middleware
Merge pull request #201 from lpinca/fix/race-condition

Fix a race condition in the authorization middleware