Conflict between Admin and Anonymous plugins – 500 error
Hello,
I'm having an issue with two plugins: Admin and Anonymous.
When I try to use Anonymous while the Admin plugin is enabled, I get a 500 error. However, if I disable the Admin plugin, Anonymous works perfectly.
Is there a specific configuration I need to set up? Or are these two plugins simply not compatible with each other? I haven’t found anything about this in the documentation or the issues section.
If anyone has any idea, I’d really appreciate the help!
Thanks in advance 😊

7 Replies
I couldn't reproduce it on my end. Could you send me your auth config?
Yes, of course, in auth.ts:
and in authClient:
For the moment they are commented
And I call it in the layout:
so anonymous plugin doesn't work when the admin plugin is mounted. is that the case? also are you on latest?
Yes, exactly, it gives me a error 500, and I'm on the "better-auth" version: "^1.2.5"

hmm couldn't reproduce it in my end. If you could send me a poc, would happy to take a look.
I started a project from scratch
do we need to add the addiitonalFields role if we are using the admin plugin