Nudgra uses Google OAuth for dashboard sign-in. Create one web application credential in the Google Cloud Console, then set the redirect URI that matches your distribution.
Create OAuth credentials
Open the Google Cloud Console
Create or select a Google Cloud project.
Create OAuth credentials
Create credentials for a web application.
Set the authorized origin and redirect URI
Use the values for your distribution below.
Copy the client ID and secret
Store the values in your local and production environments.
If Google asks for an authorized domain, use the root domain. For example, use example.com when your app is on https://nudgra.example.com.
Local values
Put the client ID and secret in .env: Use your local Convex site URL as the redirect URI, not the Next.js app URL.Put the client ID and secret in .env.local or on your Convex dev deployment:
Production values
Put the client ID and secret in .env:Restart after changing .env: Set the values on Convex production:Redeploy after changing hosted values:
For Nudgra Cloud, the Google OAuth redirect URI uses the Convex site URL. Do not use https://your-app-domain.com/api/auth/callback/google.