There was a missing await that caused a race condition in our trpc auth middleware. We would throw an authorization error after we already called next on the middleware.
This corrects that and fixes the auth.
Readiness Checklist
Author/Contributor
[ ] If documentation is needed for this change, has that been included in this pull request
[x] run npm run lint and fix any linting issues that have been introduced
[x] run npm run test and run tests
[ ] If publishing new data to the public (scorecards, security scan results, code quality results, live dashboards, etc.), please request review from @jeffrey-luszcz
Reviewer
[x] Label as either bug, documentation, enhancement, infrastructure, maintenance, or breaking
Pull Request
Proposed Changes
There was a missing
await
that caused a race condition in our trpc auth middleware. We would throw an authorization error after we already callednext
on the middleware.This corrects that and fixes the auth.
Readiness Checklist
Author/Contributor
npm run lint
and fix any linting issues that have been introducednpm run test
and run tests@jeffrey-luszcz
Reviewer
bug
,documentation
,enhancement
,infrastructure
,maintenance
, orbreaking