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
For a new project I'm using the service pattern. I'm at the point now where I want the auth/user service to add a policy (set of rules) to a user.
Should I make a policy service and pass that to the auth/user service, or should I pass the policy repository to the auth/user service?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I think the you should pass the service, not the repository.
Important: auth/user should depend upon a interface, not the implementation of PolicyService.
I need some hel here.
For a new project I'm using the service pattern. I'm at the point now where I want the
auth/user
service to add apolicy
(set of rules) to a user.Should I make a policy service and pass that to the
auth/user
service, or should I pass the policy repository to theauth/user
service?Thanks in advance.
The text was updated successfully, but these errors were encountered: