[Not sure if bug] Admin plugin does not use the Infering Types
As title says
Using the create user
Does not adhere to any custom fields made in auth.ts
I've added
The only fields it seems to take into consideration is the pre-defined fields that are found in the docs
eg:
All fields are undefined, but they are parsed to the function correctly.
5 Replies
I also encountered this issue. It doesn't fill them up
I figured you need the data key to fill up the remaining fields.
Interesting. I assume this is for the username plugin.
Should be added to docs!:-)
It's not just for the username plugin. It also works for additionalFields. I agree it should be on the docs though.
That solves alot of issues for me - In using the same endpoint as sign up for normal users in my admin area to work around this - so your findings fix that.
Because i auto sign in users after creation, an admin would be signed in as the newly created user🤯
Glad I could help man. Good thing I also looked here for a solution