Skip to content

4.0.0

Compare
Choose a tag to compare
@MrAsterisco MrAsterisco released this 11 Dec 21:31
· 36 commits to develop since this release

This version introduces breaking changes to support Email Enumeration Protection and improve code quality.

Added

  • The library now supports projects that have Email Enumeration Protection turned on.
  • Firebase is now up to date to the latest version (#10).
  • verifyAndChange function is now available to support the new Firebase email change flow.

Improved

  • login(email:password:allowMigration:) is now just a shorthand for login(with:updateUserDisplayName:allowMigration:).
  • LoginCredential has been converted to an enum which is now called Credentials.
  • LoginCredential.Provider is now a separate enum called AuthenticationProvider.

Deprecated

  • accountExists is now deprecated, following the Firebase SDK corresponding function. It will be removed once it's removed by Firebase.
  • loginWithoutChecking is now deprecated, as there is now no difference between invoking this function and any other login function. All login functions now handle errors according to the existing logic, as it's no longer possible to query the account availability beforehand.
  • updateEmail is now deprecated, following the Firebase SDK corresponding function. Use the new verifyAndChange instead.