typescript lib types have too many optional fields

I noticed supabase's typescript lib has a ton of optional fields for the user/auth types, which means a lot of convoluted typescript code for type assertions and null/undefined checking (see screenshot) according to the docs, these fields shouldn't be optional. is the typescript lib outdated?
No description
1 Reply
silentworks
silentworks3w ago
Which fields are you referring to? anything inside of app_metadata can be optional.

Did you find this page helpful?