# Sign in with Google on your site

Let visitors sign in with Google's own button on your site, so Google shows your site's name and address. Create a Google client ID once and paste it in Lyna Cloud.

Visitors sign in to your app with Google's own button, right on your site. Google's screen shows your site's name and address, never a technical address. You create a Google client ID once, then paste it in **Settings > Lyna Cloud > Users > Sign-in methods > Google**.

The Google sign-in setup in Lyna Cloud, with the steps to create a Google client ID, the site's addresses to copy, and the Client ID field.

## What you can do

- Turn on Sign in with Google with your own Google client ID.
- Copy your site's addresses to list them in Google Cloud Console.
- Ask Lyna AI to add Google's button to your sign-in page.
- Show your logo and app name on Google's screen once Google verifies your branding.

## Set up Google

1. ### Open Google Cloud Console

   In **Settings > Lyna Cloud > Users > Sign-in methods**, choose **Configure** on **Google**, then **Open Google Cloud Console**. Go to **APIs and services > Credentials**. Create a Google Cloud project first if Google asks for one.
2. ### Set up the consent screen

   If Google asks, fill in the consent screen with your site's name and a support email.
3. ### Create the client ID

   Choose **Create credentials > OAuth client ID**, then **Web application**.
4. ### Add your site's addresses

   Under **Authorized JavaScript origins**, add each address Lyna lists in the setup, with the copy button beside each one. No redirect address is needed.
5. ### Paste the client ID in Lyna

   Choose **Create** in Google, copy the **Client ID** (it ends with `.apps.googleusercontent.com`), paste it in the **Client ID** field and choose **Save and turn on**. Only the project owner and admins can save it.

## Add the button to your site

Ask Lyna AI in the chat, for example: "Add Sign in with Google to the sign-in page." Lyna AI adds Google's button to the page and sets your client ID in the app.

> [!NOTE]
>
> **Try it on your published site**
>
> Google's button works on the addresses you listed. The editor's preview has an address of its own, so try the sign-in on your published site or your custom domain.

## Sign-up emails

Sign-up, magic link, password reset, email change and invitation emails link to a confirmation page on your site, never to a technical address. Lyna sets this up for every new Lyna Cloud database, and for an older one the next time an editor opens **Users** in **Settings > Lyna Cloud**. Email templates you wrote keep their words: only their links change.

## Show your logo on Google's screen

Google shows your app's name and logo once it verifies your branding. In Google Cloud Console, open **Google Auth Platform > Branding**, fill in your app's name, logo and links, then ask for verification. It can take a few business days.

## Sign in with GitHub

GitHub signs people in on its own site, then sends them back to yours. Its screen shows the technical address of your database in small print, unless your database has a custom address.

## FAQ

### Do I need a client secret?

No. Google's button on your site needs only the client ID.

### Is my client ID a secret?

No. A client ID is public, and Google accepts it only on the addresses you listed in Google Cloud Console.

## Related

- [Users and auth](/features/cloud/users-and-auth): Sign-in methods, emails and redirect URLs.
- [Custom domains](/features/publish/custom-domains): Put your site on your own domain.
