Error When Trying to Add Native Google Sign-in to Android App

Overview

The article explains the cause of the following error when trying to use the Native Social Token for Google Sign-in for an Android App by calling the AuthenticationAPIClient::loginWithNativeSocialToken() function.

Grant type urn:ietf:params:oauth:grant-type:token-exchange with subject_token_type http://auth0.com/oauth/token-type/google-id-token is not enabled for this client

Applies To

  • Android Software Development Kit (SDK)
  • Native Google Social Login

Cause

This error can be caused by not having the Enable Sign in with Google (Android 4.4+) using Credentials Manager flag enabled for the specific Native Client.

Solution

  • From the Auth0 Dashboard go to Applications and select the desired native application
  • Go to Settings > Advanced Settings > Device Settings
  • Turn on the Enable Sign in with Google (Android 4.4+) using Credentials Manager setting and select Save Changes