Skip to content

4.2.0

Compare
Choose a tag to compare
@jeromegamez jeromegamez released this 08 Mar 18:18
· 1093 commits to 7.x since this release
4.2.0
754116d

A new ready-to-go repository with usage examples can be found at
https://github.com/jeromegamez/firebase-php-examples

New features

  • Added support to create and update users with properties
    (Documentation)
    • Kreait\Firebase\Auth::createUser($properties)
    • Kreait\Firebase\Auth::updateUser($uid, $properties)
  • Added Kreait\Firebase\Auth::getUserByPhoneNumber($phoneNumber)
  • Added method to verify the password of an account provided by the email/password provider
    (Documentation)

Bugfixes

  • Kreait\Firebase\Auth::getUser() and Kreait\Firebase\Auth::getUser() were throwing a TypeError
    when trying to create a user record from an empty data set (the Firebase API returns an empty
    response when no user is found). Now, a Kreait\Firebase\Exception\UserNotFound exception
    is thrown instead.

Deprecations

  • Kreait\Firebase\Auth\ApiClient::signupNewUser()
  • Kreait\Firebase\Auth\ApiClient::enableUser()
  • Kreait\Firebase\Auth\ApiClient::disableUser()
  • Kreait\Firebase\Auth\ApiClient::changeUserPassword()
  • Kreait\Firebase\Auth\ApiClient::changeUserEmail()