Nested object as a users additional fields
My user schema something like this.
json
How add this kind of data in additional fields?
4 Replies
please @bekacru
nested objects aren't supproted as additional fields
I can make a plugin that will make a UserMetadata table and link it with user table. Is it a right approch?
or are there any other ways to achieve this schema?
You can use custom session
https://www.better-auth.com/docs/concepts/session-management#customizing-session-response
Session Management | Better Auth
Better Auth session management.