Closed burkkyy closed 4 months ago
Fixes #194
Users were being created twice by a race condition from loadUser in api/src/middleware/authz.middleware.ts
loadUser
api/src/middleware/authz.middleware.ts
api/src/middleware/authorization-middleware.ts
dev test middleware
Fixes #194
Context
Users were being created twice by a race condition from
loadUser
inapi/src/middleware/authz.middleware.ts
Implementation
api/src/middleware/authz.middleware.ts
withapi/src/middleware/authorization-middleware.ts
api/src/middleware/authorization-middleware.ts
.api/src/middleware/authorization-middleware.ts
Testing Instructions
Additional Information
api/src/middleware/authorization-middleware.ts
is hardened againt +1000 requests at once.Screenshot