BA
Better Auth•4mo ago
Harvey

Member roles are duplicated

I'm having trouble creating a reproduction other than my project code; therefore asking here for some pointers on what might be wrong. When I use auth.api.updateMemberRole, if I pass an array to role, all the roles are duplicated. e.g. if I try to do updateMemberRole with:
role: ['member','friend']
role: ['member','friend']
then the database will store member,friend,member,friend. If I use a string, the roles are not duplicated (as expected) - the database stores member,friend Better Auth v1.2.9 Drizzle Bun SQLite backend I can't seem to create a simple reproduction - when I try, the problem goes away 😖
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?