Replies: 1 comment
-
You may need to use roles and permissions approach by implementing gates or policies instead. Learn more about Gates/Policies here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have two guards in use for two different user models. Passport supports multiple user types but only allows to use one guard for the auth controller. Is there any way to define different guards per client or maybe somehow combine the two guards?
Basically I want to be able to call
/oauth/authorize
when logged in as either one of my two user types. Currently only one or the other (depending on the guard set in thepassport.guard
config) is possible.Beta Was this translation helpful? Give feedback.
All reactions