GoogleSignin.configure({
webClientId: '<MY CLIENT ID OF TYPE ANDROID>', // client ID of type WEB for your server (needed to verify user ID and offline access)
offlineAccess: true, // if you want to access Google API on behalf of the user FROM YOUR SERVER
loginHint: 'Login Authorization', // [iOS] The user's ID, or email address, to be prefilled in the authentication UI if possible. [See docs here](https://developers.google.com/identity/sign-in/ios/api/interface_g_i_d_sign_in.html#a0a68c7504c31ab0b728432565f6e33fd)
forceConsentPrompt: true, // [Android] if you want to show the authorization prompt at each login.
accountName: 'MyDay-test', // [Android] specifies an account name on the device that should be used
});
这是我的本机Google登录代码。我的android类型的Web客户端ID(因为它是android)是我从Google开发者控制台获得的。但是我遇到了错误。之INVALID_ACCOUNT。我发现,如果我将webClientId键留空字符串,它将返回相同的错误,因此问题出在clientID上。但是,这是我在哈希或放置SHA-键后获得的clientID。我有什么想念的吗?我什至从开发人员控制台尝试了Web clientID,但没有运气。我还有什么需要做的?