Google Health scopes can require OAuth app verification and a third-party security review before you support more than 100 users.Follow our guide to prepare for Google’s OAuth review.
Create a Google Cloud project
- Go to the Google Cloud Console.
- Click the project selector at the top of the page.
- Click New project.
- Enter a project name.
- Select the organization or folder where the project belongs.
- Click Create and select the new project.
Enable the Google Health API
- In the Google Cloud Console, open APIs & Services > Library.
- Search for Google Health API.
- Select the API and click Enable.
Configure the OAuth consent screen
- Open APIs & Services > OAuth consent screen.
- Click Get started.
- Enter the app name and user support email.
- Select the audience for your app:
- External for apps available to any Google user
- Internal for apps restricted to your Google Workspace organization
- Add your contact email addresses.
- Add the required app URLs, including your application website, privacy policy, and terms of service.
- Add authorized domains for the domains that host your app.
Add test users
If your OAuth consent screen is in Testing mode, add each test user before they authorize the app.
- Open APIs & Services > OAuth consent screen > Audience.
- Under Test users, click Add users.
- Enter each Google account email address that should be allowed to authorize your app.
- Click Save.
Add Google Health scopes
- Open APIs & Services > OAuth consent screen > Data access.
- Click Add or remove scopes.
- Search for Google Health API.
- Select only the scopes your app needs.
- Click Update, then Save.
Create OAuth 2.0 credentials
- Open APIs & Services > Credentials.
- Click Create credentials and select OAuth client ID.
- Select Web application as the application type.
- Enter a name for the OAuth client.
- Under Authorized redirect URIs, add
https://api.nango.dev/oauth/callback. - If you test from the Nango dashboard, add
https://app.nango.devunder Authorized JavaScript origins. - Click Create.
- Copy the client ID and client secret.
Configure the integration in Nango
- In Nango, open Integrations and configure a new Google Health integration.
- Paste the Google OAuth client ID and client secret.
- Add the same Google Health scopes you configured on the OAuth consent screen.
- Save the integration.
Start building your integration
Follow the Quickstart to connect your first Google Health account.
Verify and publish your app
Most production Google Health apps need OAuth app verification, and apps with more than 100 users require a third-party security review.
- Follow the Google app and security review guide.
- After approval, open APIs & Services > OAuth consent screen > Audience.
- Click Publish app to move from Testing to Production.
Fitbit migration notes
Fitbit Web API tokens do not transfer to Google Health. Ask existing Fitbit users to authorize the new Google Health integration, verify the new credentials, then update your application to use the Google Health connection. After consent, callGET /v4/users/me/identity through the Nango proxy and store both identifiers returned by Google Health. The response includes the legacy Fitbit user ID and the Google Health user ID.
For more details, see: