Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: add custom slugs on Google Auth page

takpen659bac00d67a
diff --git a/apps/docs/pages/guides/auth/social-login/auth-google.mdx b/apps/docs/pages/guides/auth/social-login/auth-google.mdx
index 164306f722b..6df6abdfd8f 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-google.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-google.mdx
@@ -55,7 +55,7 @@ const { data, error } = await supabase.auth.signInWithOAuth({
})
```
-### Configuration
+### Configuration [#configuration-web]
To use the OAuth 2.0 flow, you will require the following information:
@@ -159,7 +159,7 @@ Please take a look at these open-source projects which may help you obtain an ID
For apps written in Kotlin, please consult the [community maintained library](/docs/reference/kotlin/introduction).
-### Configuration
+### Configuration [#configuration-native-app]
1. Configure OAuth credentials for your Google Cloud project in the [Credentials](https://console.cloud.google.com/apis/credentials) page of the console. When creating a new OAuth client ID, choose _Android_ or _iOS_ depending on the mobile operating system your app is built for.
@@ -222,7 +222,7 @@ chrome.identity.launchWebAuthFlow(
)
```
-### Configuration
+### Configuration [#configuration-chrome-extention]
You will need to configure a client ID for your Chrome extension:
@@ -278,7 +278,7 @@ async function handleSignInWithGoogle(response) {
Use of nonce is recommended, though optional. Make sure each nonce is generated randomly and available both in the `data-nonce` attribute as well as in the `handleSignInWithGoogle` callback function; otherwise the ID token will not be accepted.
-### Configuration
+### Configuration [#configuration-personalized-sign-in-button]
1. Obtain OAuth credentials for your Google Cloud project in the [Credentials](https://console.developers.google.com/apis/credentials) page of the console. When creating a new credential, choose _Web application_. As you're using the Google sign in button, you should configure the _Authorized JavaScript origins_ and _Authorized redirect URIs_ to the website where the buttons appear. You should not use your Supabase project domain name. For this use case, the client secret provided is not needed and can be ignored.
2. Configure the [OAuth Consent Screen](https://console.cloud.google.com/apis/credentials/consent). This information is shown to the user when giving consent to your app. In particular, make sure you have set up links to your app's privacy policy and terms of service.