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?
image_6.png
Was this page helpful?