Replies: 1 comment 4 replies
-
Don't worry it is in progress #74 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, seems like a great plugin with quite straightforward code!
There is just one thing I'm wondering: Why is there a split into frontend / admin users?
I've set up my app to use the same collection for all users, with an access control on
admin
and roles determining whether a user is an admin or not. It seems to me that the key difference in this plugin is the password provider.My favorite implementation would stick closer to Payload Auth, allowing me to use
withAuthCollection
(equivalent ofwithAppAccountCollection
+withAppUsersCollection
) on any collection, adding endpoints on that collection instead of globally. Implementation of the client would stay the same, andoptions.name
could becomeoptions.collection
.Definitely tempted to fork and try implementing that. But perhaps I'm missing something.
Beta Was this translation helpful? Give feedback.
All reactions