fromGoogleCredentials

public static FirebaseCredentials fromGoogleCredentials(GoogleCredentials credentials)

Creates a new FirebaseCredentials from the given GoogleCredentials.

This method sets scopes required to use the Firebase database.

This method is useful to create credentials from the application default credentials.

Return

a new instance of FirebaseCredentials

Parameters

credentials

the credentials to create from


public static FirebaseCredentials fromGoogleCredentials(GoogleCredential credentials)

Deprecated

Creates a new FirebaseCredentials from the given GoogleCredentials.

This method sets scopes required to use the Firebase database.

Deprecated

please use fromGoogleCredentials or any other alternative instead