Skip to content

Releases: firebase/firebase-admin-python

Firebase Admin Python SDK v2.9.1

15 Mar 20:34
7e0d47e
Compare
Choose a tag to compare

Cloud Messaging

  • [changed] Improved error handling in FCM by mapping more server-side
    errors to client-side error codes. See documentation.
  • [changed] The messaging module now supports specifying an HTTP timeout
    for all egress requests. Pass the httpTimeout option
    to firebase_admin.initialize_app() before invoking any functions in
    messaging.

Firebase Admin Python SDK v2.9.0

14 Feb 21:50
176ef5f
Compare
Choose a tag to compare

Firebase Cloud Messaging

  • A new firebase_admin.messaging
    module for sending messaging messages and managing topic subscriptions.
  • A new send()
    function for sending messaging messages.
  • A new subscribe_to_topic()
    function for subscribing a list of device registration tokens to a
    messaging topic.
  • A new unsubscribe_from_topic()
    function for unsubscribing a list of device registration tokens from a
    messaging topic.

Firebase Auth

  • The verify_id_token()
    function now accepts an optional check_revoked parameter. When True, an
    additional check is performed to see whether the token has been revoked.
  • A new revoke_refresh_tokens()
    function to invalidate all tokens issued to a user.
  • A new tokens_valid_after_timestamp property has been added to the
    UserRecord
    class to indicate the time before which tokens are not valid.

Firebase Admin Python SDK v2.8.0

11 Jan 22:19
c05ee5d
Compare
Choose a tag to compare

Initialization

  • The initialize_app() method can now be invoked without any arguments. This will initialize an app using Google Application Default Credentials, and other options loaded from the FIREBASE_CONFIG environment variable.

Database

  • The db.Reference.get() method now accepts an optional shallow argument. If set to True this will cause the SDK to execute a shallow read, which does not retrieve the child node values of the current reference.

Firebase Admin Python SDK v2.7.0

21 Dec 20:28
d2b3c94
Compare
Choose a tag to compare
  • A new instance_id API that facilitates deleting instance IDs and associated user data from Firebase projects.

Firebase Admin Python SDK v2.6.0

08 Dec 19:14
90bce1d
Compare
Choose a tag to compare

Authentication

  • Added the list_users() function to the firebase_admin.auth module. This function enables listing or iterating over all user accounts in a Firebase project.
  • Added the set_custom_user_claims() function to the firebase_admin.auth module. This function enables setting custom claims on a Firebase user. The custom claims can be accessed via that user's ID token.

Database

  • Updated the start_at(), end_at() and equal_to() methods of the db.Query class so they can accept empty string arguments.

Firebase Admin Python SDK v2.5.0

07 Nov 21:48
d8a9345
Compare
Choose a tag to compare

Firebase Admin Python SDK v2.4.0

21 Sep 21:09
Compare
Choose a tag to compare
  • The db.Reference class now has a get_if_changed() method, which retrieves a database value only if the value has changed since last read.
  • The options dictionary passed to initialize_app() function can now contain an httpTimeout option, which sets the timeout (in seconds) for outbound HTTP connections started by the SDK.

Firebase Admin Python SDK v2.3.0

30 Aug 17:39
Compare
Choose a tag to compare

Firebase Database

  • You can now get the ETag value of a database reference by passing etag=True to the get() method of a db.Reference object.
  • The db.Reference class now has a set_if_unchanged() method, which you can use to write to a database location only when the location has the ETag value you specify.
  • Fixed an issue with the transaction() method that prevented you from updating scalar values in a transaction.

Firebase Admin Python SDK v2.2.0

14 Aug 21:40
Compare
Choose a tag to compare

Authentication

  • A new user management API that allows provisioning and managing Firebase users from Python applications. This API adds get_user(), get_user_by_email(), get_user_by_phone_number(), create_user(), update_user() and delete_dser() methods to the firebase_admin.auth

Database

  • The db.Reference class now exposes a transaction() method, which can be used to execute atomic updates on database references.

Firebase Admin Python SDK v2.1.1

25 Jul 18:49
Compare
Choose a tag to compare
  • Constructors of Certificate and RefreshToken credential types can now be invoked with either a file path or a parsed JSON object. This facilitates the consumption of service account credentials and refresh token credentials from sources other than the local file system.
  • Better integration with the google-auth library for making authenticated HTTP requests from the SDK.