Error Code Portal
GoogleFirebase Authentication Admin SDKError code

auth/invalid-credential

invalid credential

Code auth/invalid-credential · An issue reported by Firebase Authentication Admin SDK.

The credential used to authenticate the Admin SDKs cannot be used to perform the desired action. Certain Authentication methods such as createCustomToken() and verifyIdToken() require the SDK to be initialized with a certificate credential as opposed to a refresh token or Application Default credential. See Initialize the SDK for documentation on how to authenticate the Admin SDKs with a certificate credential.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.