auth.api.updateUser would still be brokenauth.api.updateUser/**
* User schema type used by better-auth, note that it's possible that user could have additional fields
*
* todo: we should use generics to extend this type with additional fields from plugins and options in the future
*/
export type User = z.infer<typeof userSchema>;const userExtraPlugin: () => {
id: 'user-extra';
schema: {
user: {
fields: {
defaultCurrency: {
type: 'string';
};
};
};
};
} = () => {
return {
id: 'user-extra',
schema: {
user: {
fields: {
defaultCurrency: {
type: 'string',
},
},
},
},
};
};