Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
export const meta = { title: 'Sign in with Google (optional)', description: 'Let members sign in with their Google account, with your name and logo on Google\'s sign-in screen.' }
<Callout type="note" title="How it works">
Twiligent uses Google's own sign-in button, laid over a button drawn in Twiligent's style so it matches the page in both themes. Google returns a signed ID token to the browser, and Supabase verifies it directly. Nothing redirects through your Supabase address, so every domain Google sees is one you own, which is what lets Google approve your logo.
</Callout>
<Steps>
<Step title="Serve Twiligent from your own domain">
Google only verifies domains you prove you own in [Search Console](https://search.google.com/search-console). Addresses like `twiligent.pages.dev` cannot be verified, so add a custom domain such as `twiligent.example.com` to your Cloudflare Pages project under **Custom domains**, and update `FRONTEND_URL` on the Worker.
</Step>
<Step title="Set up branding">
In [Google Auth Platform, Branding](https://console.cloud.google.com/auth/branding), enter the app name, support email and a 120 by 120 pixel logo. Set the home page and privacy policy links; both must be on your domain, and the home page must link to the privacy policy. Add your domain under **Authorized domains**. One entry covers all its subdomains.
</Step>
<Step title="Choose the audience and scopes">
Under **Audience**, pick **External** and publish the app to production. Under **Data access**, add only `openid`, `userinfo.email` and `userinfo.profile`. These are not sensitive, so there is no user cap and no security review.
</Step>
<Step title="Create the client">
Under **Clients**, create a **Web application**. Add your Twiligent address as an authorized JavaScript origin, plus `http://localhost:5173` for development. Google only shows its button on the origins listed here, so on any other address the Continue with Google button does nothing. No redirect URI is needed. Copy the client ID.
</Step>
<Step title="Turn on Google in Supabase">
In Supabase, open **Authentication**, **Sign In / Providers**, **Google**. Enable it and paste the client ID into **Client IDs**. Leave **Skip nonce checks** off; Twiligent sends a nonce with every sign-in.
</Step>
<Step title="Add the client ID to the frontend">
Set `VITE_GOOGLE_CLIENT_ID` in `frontend/.env` and as a GitHub secret, then redeploy. The **Continue with Google** button appears on the sign-in page.
</Step>
<Step title="Submit for brand verification">
Open **Verification Center** and submit. Google reviews brands with basic scopes in a few business days. Until then sign-in works, but Google shows your domain instead of your name and logo.
</Step>
</Steps>