I want the very first user that sign ups for my ap...
# support-questions-legacy
v
I want the very first user that sign ups for my application to be assigned an admin role. I'm using the backend sign up function override logic in the docs. I'm creating an admin role first before calling the original sign up function on my backend server. This is done in the supertokens init struct. I get the error: "Initialisation not done. Did you forget to call the init function?, resp object ". Is there way to create the admin role in the override signup function? Thanks!
r
Hey @vishjain. have you done userroles.init in the recipe list?
v
Seems to be working with that addition. Thanks - didn't see this.
r
great
2 Views