You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(allsrv): inject authorization mechanism to decouple it from server
This does a few things:
1) Allows us to control the auth at setup without having to update
the implementation of the server endpoints. We've effectively decoupled
our auth from the server, which gives us freedom to adapt to future
asks.
2) The injection is using a `middleware` function. This could be
an interface as well. Its totally up to the developer/team. Sometimes
an interface is more useful.
3) We have the freedom to ignore auth in tests if we so desire. This
can be useful if your auth setup is non-trivial and involves a good
bit of complexity.
0 commit comments