[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-12 UTC."],[],[],null,["# firebase_admin.credentials module\n\nFirebase credentials module.\n\nClasses\n-------\n\n| ### AccessTokenInfo *class* firebase_admin.credentials.AccessTokenInfo(*access_token* , *expiry* ) |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Bases: tuple Data included in an OAuth2 access token. Contains the access token string and the expiry time. The expirty time is exposed as a datetime value. access_token : Alias for field number 0 expiry : Alias for field number 1 |\n\n| ### ApplicationDefault *class* firebase_admin.credentials.ApplicationDefault |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Bases: [Base](#firebase_admin.credentials.Base \"firebase_admin.credentials.Base\") A Google Application Default credential. get_credential() : Returns the underlying Google credential. Raises: : **google.auth.exceptions.DefaultCredentialsError** -- If Application Default credentials cannot be initialized in the current environment. Returns: : A Google Auth credential instance. Return type: : google.auth.credentials.Credentials | *property* project_id | |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Returns the project_id from the underlying Google credential. Raises: : **google.auth.exceptions.DefaultCredentialsError** -- If Application Default credentials cannot be initialized in the current environment. Returns: : The project id. Return type: : str | |\n\n| ### Base *class* firebase_admin.credentials.Base |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Bases: object Provides OAuth2 access tokens for accessing Firebase services. get_access_token() : Fetches a Google OAuth2 access token using this credential instance. Returns: : An access token obtained using the credential. Return type: : [AccessTokenInfo](#firebase_admin.credentials.AccessTokenInfo \"firebase_admin.credentials.AccessTokenInfo\") get_credential() : Returns the Google credential instance used for authentication. |\n\n| ### Certificate *class* firebase_admin.credentials.Certificate(*cert* ) |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Bases: [Base](#firebase_admin.credentials.Base \"firebase_admin.credentials.Base\") A credential initialized from a JSON certificate keyfile. get_credential() : Returns the underlying Google credential. Returns: : A Google Auth credential instance. Return type: : google.auth.credentials.Credentials | *property* project_id | |-----------------------| | | | *property* service_account_email | |----------------------------------| | | | *property* signer | |-------------------| | | |\n\n| ### RefreshToken *class* firebase_admin.credentials.RefreshToken(*refresh_token* ) |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Bases: [Base](#firebase_admin.credentials.Base \"firebase_admin.credentials.Base\") A credential initialized from an existing refresh token. get_credential() : Returns the underlying Google credential. Returns: : A Google Auth credential instance. Return type: : google.auth.credentials.Credentials | *property* client_id | |----------------------| | | | *property* client_secret | |--------------------------| | | | *property* refresh_token | |--------------------------| | | |"]]