目录

What should I do if an error occurs at runtime when has.login is called?

Symptom

An error occurs at runtime when has.login is called. The error information is as follows:

errMsg: login error, message: Failed to check the fingerprint of the app bundle.Fingerprint verification error.

errCode: 11000101

Possible causes

  1. Automatic signing is used, which is not supported by HUAWEI ID sign-in authentication.

  2. client_id is not configured or incorrectly configured.

  3. The certificate fingerprint of the app is not configured or incorrectly configured.

  4. The signature of the debug version of the installation package is different from that of the release version.

Solution

  1. Use manual signing.

  2. Ensure that client_id in the module.json5 file in the module whose module type is entry is correctly set. For details, see Configuring the Client ID.

  3. Ensure that the certificate fingerprint configured for the app in AppGallery Connect is correct. For details, see Adding a Public Key Fingerprint.

  4. Update the version code in the app.json5 file to invalidate the local cache and try again.