FirebaseAdminAppCredentialFactory extension

Access to the Firebase Admin App Credential Factory methods

on

Methods

applicationDefault([Agent httpAgent]) Credential
Returns a credential created from the {@link https://developers.google.com/identity/protocols/application-default-credentials | Google Application Default Credentials} that grants admin access to Firebase services. This credential can be used in the call to {@link firebase-admin.app#initializeApp}.
cert(JSAny serviceAccountPathOrObject, [Agent httpAgent]) Credential
Returns a credential created from the provided service account that grants admin access to Firebase services. This credential can be used in the call to {@link firebase-admin.app#initializeApp}.
refreshToken(JSAny refreshTokenPathOrObject, [Agent httpAgent]) Credential
Returns a credential created from the provided refresh token that grants admin access to Firebase services. This credential can be used in the call to {@link firebase-admin.app#initializeApp}.