Auth Service provided by AppGallery Connect supports multiple third-party authentication modes such as HUAWEI ID, WeChat, QQ, Facebook and Twitter, covering most popular sign-in methods. Today we take a look at two issues that you might come up against when integrating the Auth service using a third party.
Result code: 203817990 Error message: fail to get third user union id
This error usually occurs when we integrate HUAWEI ID authentication. When we sign in to an app with a HUAWEI ID, Auth Service has to obtain the UnionID from the account. However, if you have not enabled the UnionID for your app, it will not be obtainable.
To enable the UnionID:
- Sign in to HUAWEI Developers with your developer account.
- Click Console and
- go to App services > Development >HUAWEI ID.
- Click Update in the Operation column for the app. Then select Enable for UnionID.
Error code: 203818033 Error message: google response aud not equal to appid
This error occurs when we integrate Google account authentication. This is because the value of the aud parameter carried by the ID token is not the same as the app's ID in Google. According to the Google's official documents, the value of aud should be equal to the app's ID specified by Client ID on Google Cloud Platform.
The aud parameter is the client ID in the Google account management console.
To resolve this problem, configure the app's client ID to Client ID when you enable Google authentication mode in AppGallery Connect.
Top comments (0)