Google OAuth Setup Guide
Follow these steps to enable Google sign-in for CareAlert
1

Create Google Cloud Project

Go to Google Cloud Console and:

  • Create a new project named "CareAlert"
  • Enable the "Google+ API"
  • Create OAuth 2.0 credentials for a Web application
Open Google Cloud Console
2

Configure OAuth Consent Screen

In the OAuth consent screen:

  • Select "External" for user type
  • App name: CareAlert
  • Add your email as support email
  • Add scopes: email, profile, openid
3

Get OAuth Credentials

Copy your OAuth credentials:

  • Client ID
  • Client Secret
4

Configure Supabase

In your Supabase project:

  • Go to Authentication → Providers → Google
  • Enable Google provider
  • Paste Client ID and Client Secret
  • Add redirect URI: http://localhost:3000/api/auth/callback (dev)
  • Add redirect URI: https://yourdomain.com/api/auth/callback (production)