Search
Setup for Free
BA
Better Auth
•
10mo ago
benarbia
sign up the role to be stored in the db is "agency" but it is alwyas stored as "user" any help ?
message.txt
11.11KB
Better Auth
Join
9,560
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
B
bekacru
•
2/27/25, 11:22 AM
are you using the admin plugin
?
B
benarbia
OP
•
2/28/25, 7:59 AM
yes
, in fact i want 3 roles
,user
, admin and agency but when i sign up as agency it always store user in the role not agency as i want
B
benarbia
yes , in fact i want 3 roles ,user , admin and agency but when i sign up as agen...
B
bekacru
•
2/28/25, 8:01 AM
roles can
't be set from the client
. If you want to change the default
, role type you can pass
defaultRole
defaultRole
in the plugin config
B
benarbia
OP
•
2/28/25, 8:56 AM
role is by default is
"user
" but in the sign up i have an option to sign up as an
"agency
" i want when that check box is checked the account to create with role
"agency
" so it that possible
?
B
benarbia
OP
•
2/28/25, 10:58 AM
I removed the admin plugin it was always pass the role as
"user
" when i signup even when i used database hook
, now it store
"agency
" as i wanted
S
shahreaz
•
3/10/25, 5:36 AM
@bekacru
S
shahreaz
•
3/10/25, 5:37 AM
with admin plugin is it not possible
?
?
S
shahreaz
•
3/10/25, 5:43 AM
I want all the features of the admin plugin
.
defaultRole
defaultRole
Similar Threads
ip Address is not stored in db
BA
Better Auth / help
7mo ago
Email verification is not set in db after sign-up
BA
Better Auth / help
7mo ago
Setting user role on sign up
BA
Better Auth / help
8mo ago
role field doesn't show up on sign in but shows up on session
BA
Better Auth / help
2mo ago