silverton-io / buz

Serverless multi-protocol + multi-destination event collection system.
https://oss.buz.dev/
Apache License 2.0
198 stars 23 forks source link

Fix auth middleware #595

Closed hatamiarash7 closed 1 month ago

hatamiarash7 commented 2 months ago

The auth middleware is not working and has runtime errors because of the wrong initialized phase order. We should initialize RouterGroups before Middleware because the Middleware needs a.switchableRouterGroup.

Also, the Tokens key in the config structure is wrong.