Changes
Auth
-
Add error code enum for Auth API errors by @jan-tennert in #618
All rest errors containing aerror_codefield will now throw aAuthRestExceptionrather than genericBadRequestExceptions, etc.
AuthRestExceptions contain aerrorCodefield of the typeAuthErrorCodecontaining all known error codes.
Two error codes have their own exceptions (but obviously inherit fromAuthRestException):AuthWeakPasswordExceptionandAuthSessionMissingException.
API errors not containing this field will throw the generic exceptions. -
Handle
weak_passwordandsession_not_foundauth error codes by @jan-tennert in #596
There is now a new subclass ofRestException:AuthRestExceptonwhich will be a super class for exceptions based on error codes. Currently, there are two new exceptions:AuthWeakPasswordExceptionandAuthSessionMissingException
Postgrest
- Add columns header to
PostgrestQueryBuilder#insertby @jan-tennert in #611
This fixes an issue when inserting a list of objects where some objects might not have all keys. - Add
defaultToNullparameter toPostgrestQueryBuilder#insert
Realtime
- Use
PostgrestspropertyConversionMethodfor getting the property name of primary keys - Add the possibility to have a multi-column PK in realtime by @iruizmar in #614
- Fix presences updates for
RealtimeChannel#presenceDataFlowworking incorrectly by @JOsacky in #607
Compose Auth Ui
- Add
isErrorparameter to Compose Auth Ui fields by @jan-tennert in #612 - Add AuthUiExperimental annotation by @iruizmar in #603
All composables now have aAuthUiExperimentalannotation instead ofSupabaseExperimental
Misc
- Update README.md by @rafalgawlik in #605
New Contributors
- @rafalgawlik made their first contribution in #605