public interface

FirebaseCredential

com.google.firebase.auth.FirebaseCredential

Class Overview

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

Summary

Public Methods
abstract Task<GoogleOAuthAccessToken> getAccessToken()
Returns a Google OAuth2 access token which can be used to authenticate with Firebase services.

Public Methods

public abstract Task<GoogleOAuthAccessToken> getAccessToken ()

Returns a Google OAuth2 access token which can be used to authenticate with Firebase services. This method does not cache tokens, and therefore each invocation will fetch a fresh token. The caller is expected to implement caching by referencing the token expiry details available in the returned GoogleOAuthAccessToken instance.

Returns
  • A Task providing a Google OAuth access token.