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 .

Signature:

export interface Credential 

Methods

Method Description
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. A Google OAuth2 access token object.

Credential.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.

A Google OAuth2 access token object.

Signature:

getAccessToken(): Promise<GoogleOAuthAccessToken>;

Returns:

Promise<GoogleOAuthAccessToken>