Skip to content

Releases: kreait/firebase-php

6.3.0

24 Apr 20:41
611a578
Compare
Choose a tag to compare

Added

  • Added support for the Firebase Auth Emulator. (#692) (Documentation)
  • Tenant aware session cookie handling is now officially supported.

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

6.2.0

02 Mar 23:34
7eee99e
Compare
Choose a tag to compare

Added

  • Cloud Messaging: Added support for APNS subtitles (supported by iOS 9+, silently ignored for others) (#692)
  • Auth: In Auth::listUsers(), if the specified batch size exceeds the specified maximum number of to be returned users, the batch size will be reduced from the default 1000. As an example: previously, Auth::listUsers(2) would have downloaded 1000 accounts (the default batch size), but return only the first two. After the change, only two accounts will be downloaded.
  • Added methods
    • Kreait\Firebase\Messaging\ApnsConfig::withSubtitle()

Changed

  • Replaced internal JSON helper class with beste/json
  • Deprecated classes
    • Kreait\Firebase\Util\JSON

6.1.0

28 Jan 10:29
c498938
Compare
Choose a tag to compare

Added

  • Added convenience method to bulk-remove multiple children of an RTDB Reference (#686)
  • Added support for Session Cookie Verification.
    • Tenants don't seem to be supported at the moment (creating or verifying a Session Cookie with a tenant-enabled Firebase project yields an UNSUPPORTED_TENANT_OPERATION error), but once it is supported, the SDK will need no or just minimal updates. Integration tests are in place to checking for this error so that we know early on when it starts working.
  • Added methods:
    • Kreait\Firebase\Auth::verifySessionCookie()
    • Kreait\Firebase\Database\Reference::removeChildren()

Changed

  • Tenant-aware auth methods are now tested the same way as tenant-unaware methods. In order to achieve this, some internal implementations had to be changed, warranting this minor version bump. Please note that the tests uncovered that creating session tokens is currently not possible when working with tenants. (GitHub issue / Google Issue Tracker issue))
  • Deprecated classes
    • Kreait\Firebase\Auth\CreateActionLink\ApiRequest
    • Kreait\Firebase\Auth\CreateSessionCookie\ApiRequest
    • Kreait\Firebase\Auth\SendActionLink\ApiRequest

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

6.0.1

16 Jan 12:01
fe3bc70
Compare
Choose a tag to compare

Fixed

  • When signing in with IdP credentials a user's Firebase UID is retrieved from the returned localId field, if present

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

5.26.1

16 Jan 11:59
291d4e6
Compare
Choose a tag to compare

Fixed

  • When signing in with IdP credentials a user's Firebase UID is retrieved from the returned localId field, if present

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

6.0.0

07 Jan 00:17
daac8ff
Compare
Choose a tag to compare

This is a release with breaking changes.

Please review the Changelog and adapt your application where needed.


If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

I will assist Sponsors (in a tier with access to my private Slack) hands-on with upgrading their codebase and will be available for individual questions as long as their sponsorship is active 🤗.

5.26.0

06 Jan 01:37
19c3e2a
Compare
Choose a tag to compare

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏


Added

  • Ensured compatibility with PHP 8.1
  • Added optional $locale parameter to the following methods(#679)
    • Kreait\Firebase\Auth::getEmailActionLink(string $type, $email, $actionCodeSettings = null, ?string $locale = null)
    • Kreait\Firebase\Auth::getEmailVerificationLink($email, $actionCodeSettings = null, ?string $locale = null)
    • Kreait\Firebase\Auth::getPasswordResetLink($email, $actionCodeSettings = null, ?string $locale = null)
    • Kreait\Firebase\Auth::getSignInWithEmailLink($email, $actionCodeSettings = null, ?string $locale = null)

Deprecated

  • Kreait\Firebase\Value\Provider, use provider strings directly (supported providers)
  • Kreait\Firebase\Auth::signInWithTwitterOauthCredential(), use signInWithIdpAccessToken('twitter.com') instead
  • Kreait\Firebase\Auth::signInWithGoogleIdToken(), use signInWithIdpIdToken('google.com') instead
  • Kreait\Firebase\Auth::signInWithFacebookAccessToken(), use signInWithIdpAccessToken('facebook.com') instead
  • Kreait\Firebase\Auth::signInWithAppleIdToken(), use signInWithIdpIdToken('apple.com') instead

5.25.0

01 Nov 16:10
94cc269
Compare
Choose a tag to compare

Added

  • Added support for providing a nonce when signing in with IdP credentials
  • Added methods:
    • Kreait\Firebase\Auth::signInWithAppleIdToken()

Changed

  • When building the RTDB Url from the service account's project ID, the SDK will not replace colons (:) and dots (.) with dashes (-) anymore. (#351 (comment))

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

5.24.0

05 Oct 16:16
668d450
Compare
Choose a tag to compare

Added

Added Factory::getDebugInfo() to display information about the currently configured factory. (Documentation)

Changed

Bumped kreait/firebase-tokens to ^1.16.1 to ensure a minor security fix in lcobucci/jwt (More info: GHSA-7322-jrq4-x5hf)

Fixed

Fixed a bug that occurs when using Realtime Database Paths without a leading slash with newer releases of guzzle/psr7


If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

5.23.0

26 Aug 12:01
0b3ba9f
Compare
Choose a tag to compare

Added

  • Added screenName property to the provider data of a user record (#575)
  • Added support for deleting multiple users at once (based on #650) (Documentation)

Changed

  • Bumped google/auth dependency ^1.18 in order to ensure support for guzzle/psr ^2.0 (see google/auth#357)

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏