Additional Date field throws an error

I added an additional field in auth.ts and also I infer the additional fields (as type date not required and default null) when I create the client inferAdditionalFields<typeof auth>(). The autocomplete works for that field and everything is great, but when I want to update that field using the authClient.updateUser({customDateField: new Date()}) the server throws and error: @repo/api-app:dev: # SERVER_ERROR: TypeError: value.toISOString is not a function
2 Replies
Ping
Ping3d ago
Yeah this is an existing bug, we're still investigating. If you try to use server auth you won't have this issue.
reddevil777
reddevil777OP3d ago
I see, thanks a lot I feel sane again

Did you find this page helpful?