Stay organized with collections
Save and categorize content based on your preferences.
Before you add One Tap sign-in to your app, set up your Google APIs and Android
projects.
Set up your Google APIs console project
Open your project in the API Console,
or create a project if you don't already have one.
On the OAuth consent screen page, make sure all of the information is
complete and accurate. In particular, make sure you have specified the URLs
of your app's privacy policy and terms of service.
On the Credentials page, create an Android client ID for your app if you
don't already have one. You will need to specify your app's package name and
SHA-1 signature.
On the Credentials page, create a web application client ID if you don't
already have one. You can leave the Authorized JavaScript Origins and
Authorized redirect URIs fields blank. This client ID represents your
authentication backend server. (You would use this client ID when calling
Google APIs from your server, but you need it even if you don't.)
If you have a web site that shares your app's sign-in backend,
create and publish a digital asset links file
so that users who sign in on one platform can easily sign in on the other.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-07 UTC."],[],[],null,["# Get started with One Tap sign-in and sign-up\n\n| **Caution:** One Tap for Android is deprecated. To ensure the continued security and usability of your app, [migrate to\n| Credential Manager](/identity/sign-in/credential-manager). Credential Manager supports passkey, password, and federated identity authentication (such as Sign-in with Google), stronger security, and a more consistent user experience.\n\nBefore you add One Tap sign-in to your app, set up your Google APIs and Android\nprojects.\n\nSet up your Google APIs console project\n---------------------------------------\n\n1. Open your project in the [API Console](https://console.cloud.google.com/), or create a project if you don't already have one.\n2. On the OAuth consent screen page, make sure all of the information is complete and accurate. In particular, make sure you have specified the URLs of your app's privacy policy and terms of service.\n3. On the Credentials page, create an Android client ID for your app if you don't already have one. You will need to specify your app's package name and SHA-1 signature.\n 1. Go to the [Credentials page](https://console.cloud.google.com/apis/credentials).\n 2. Click **Create credentials \\\u003e OAuth client ID**.\n 3. Select the **Android** application type.\n4. On the Credentials page, create a web application client ID if you don't already have one. You can leave the Authorized JavaScript Origins and Authorized redirect URIs fields blank. This client ID represents your authentication backend server. (You would use this client ID when calling Google APIs from your server, but you need it even if you don't.)\n 1. Go to the [Credentials page](https://console.cloud.google.com/apis/credentials).\n 2. Click **Create credentials \\\u003e OAuth client ID**.\n 3. Select the **Web application** application type.\n\nInclude dependencies in your Android project\n--------------------------------------------\n\n1. In your project-level `build.gradle` file, make sure to include Google's Maven repository (`google()`) in both your `buildscript` and `allprojects` sections.\n2. Add the dependencies for [Google Play services](https://developers.google.com/android)' authentication libraries\n to your module (app-level) build file (usually `app/build.gradle`):\n\n apply plugin: 'com.android.application'\n\n dependencies {\n // ...\n\n implementation 'com.google.android.gms:play-services-auth:21.3.0'\n }\n\nOptional: Associate your app with your site\n-------------------------------------------\n\nIf you have a web site that shares your app's sign-in backend,\n[create and publish a digital asset links file](https://developers.google.com/identity/smartlock-passwords/android/associate-apps-and-sites)\nso that users who sign in on one platform can easily sign in on the other.\n\nNext steps\n----------\n\n[Add One Tap sign-in flows to your app](/identity/legacy/one-tap/legacy-get-saved-credentials)."]]