错误代码门户
GoogleFirebase Authentication Admin SDK错误代码

auth/invalid-credential

invalid credential

代码 auth/invalid-credential · Firebase Authentication Admin SDK 报告的问题。

用于验证管理 SDK 的凭据不能用于执行所需的操作。某些身份验证方法(例如 createCustomToken() 和 verifyIdToken())要求使用证书凭据(而不是刷新令牌或应用程序默认凭据)来初始化 SDK。有关如何使用证书凭证对管理 SDK 进行身份验证的文档,请参阅初始化 SDK。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

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.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。