mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 23:52:05 -05:00
fix(organization): updated types for the user argument in allowUserToCreateOrganization to support custom fields (#3600)
* fix: organization allowUserToCreateOrganization user argument typing * chore: changeset --------- Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
This commit is contained in:
5
.changeset/silly-falcons-tie.md
Normal file
5
.changeset/silly-falcons-tie.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"better-auth": patch
|
||||
---
|
||||
|
||||
fix(organization): updated types for the user argument in `allowUserToCreateOrganization` to support custom fields
|
||||
@@ -25,7 +25,7 @@ export interface OrganizationOptions {
|
||||
*/
|
||||
allowUserToCreateOrganization?:
|
||||
| boolean
|
||||
| ((user: User) => Promise<boolean> | boolean);
|
||||
| ((user: User & Record<string, any>) => Promise<boolean> | boolean);
|
||||
/**
|
||||
* The maximum number of organizations a user can create.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user