コンソールへ移動

Interface that provides Google OAuth2 access tokens used to authenticate with Firebase services.

In most cases, you will not need to implement this yourself and can instead use the default implementations provided by admin.credential.

Index

Methods

Methods

getAccessToken

  • Returns a Google OAuth2 access token object used to authenticate with Firebase services.

    This object contains the following properties:

    • access_token (string): The actual Google OAuth2 access token.
    • expires_in (number): The number of seconds from when the token was issued that it expires.

    Returns Promise<GoogleOAuthAccessToken>

    A Google OAuth2 access token object.