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. - Fix a major bug causing sessions to be refreshed later than they should be in 9b73c03 by @jan-tennert
TheexpiresAtproperty was saved incorrectly, delaying the expiry date.
Realtime
- Use
PostgrestspropertyConversionMethodfor getting the property name of primary keys