FirebaseAdminAppCredentialFactory extension
Access to the Firebase Admin App Credential Factory methods
Methods
-
applicationDefault(
[Agent httpAgent]) → Credential -
Available on FirebaseAdminApp, provided by the FirebaseAdminAppCredentialFactory extension
Returns a credential created from the {@link https://developers.google.cn/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 -
Available on FirebaseAdminApp, provided by the FirebaseAdminAppCredentialFactory extension
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 -
Available on FirebaseAdminApp, provided by the FirebaseAdminAppCredentialFactory extension
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}.