FirebaseAuthError.invalidCredential constructor

FirebaseAuthError.invalidCredential([
  1. String? message
])

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.

Implementation

FirebaseAuthError.invalidCredential([String? message])
    : this('invalid-credential',
          message ?? 'Invalid credential object provided.');