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?

1 Reply
Which fields are you referring to? anything inside of
app_metadata
can be optional.