Skip to content

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

docs: add google setup and simplify header

Hieu Vu17a04381a678
diff --git a/apps/docs/components/MDX/kotlin_project_setup.mdx b/apps/docs/components/MDX/kotlin_project_setup.mdx
index 11bfe2f9805..10cc05ac986 100644
--- a/apps/docs/components/MDX/kotlin_project_setup.mdx
+++ b/apps/docs/components/MDX/kotlin_project_setup.mdx
@@ -42,4 +42,15 @@ Now that you've created some database tables, you are ready to insert data using
We just need to get the Project URL and `anon` key from the API settings.
1. Go to the [API Settings](https://app.supabase.com/project/_/settings/api) page in the Dashboard.
-1. Find your Project `URL`, `anon`, and `service_role` keys on this page.
+2. Find your Project `URL`, `anon`, and `service_role` keys on this page.
+
+### Set up Google Authentication
+
+From [Google Console](https://console.developers.google.com/apis/library), create a Project
+In the project, create new credential
+<img width="750" alt="Screenshot 2023-07-15 at 20 47 31" src="https://github.com/hieuwu/product-sample-supabase-kt/assets/43868345/f57fc92c-9458-44b2-ba94-688ec61a6a24"/>
+
+Then go to Supabase dashboard, in Authentication tab, open Providers to enable Google. Turn on toggle then copy and paste Client ID and Secret from Google Cloud
+<img width="750" alt="Screenshot 2023-07-15 at 20 48 26" src="https://github.com/hieuwu/product-sample-supabase-kt/assets/43868345/9b8adf4f-05a9-4ed3-a48c-e64cc7701225"/>
+
+<img width="750" alt="Screenshot 2023-07-15 at 20 49 34" src="https://github.com/hieuwu/product-sample-supabase-kt/assets/43868345/9dc29384-f7ba-4ace-97f1-2ca0a2ff299a"/>
\ No newline at end of file
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
index b2261b64219..927b45e0c9d 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
@@ -23,7 +23,7 @@ This tutorial demonstrates how to build a basic product management app. The app
## Building the app
-### Create new Android project with Jetpack Compose
+### Create new Android project
Open Android Studio > New Project > Base Activity (Jetpack Compose)
<img width="720" alt="Screen Shot 2023-06-02 at 21 33 16" src="https://github.com/hieuwu/product-sample-supabase-kt/assets/43868345/288eef97-d8fe-422f-8bb3-1c8424bab08e"></img>
@@ -179,7 +179,7 @@ object SupabaseModule {
}
```
-### Create data transfer object (DTO) to get data
+### Create data transfer object to get data
Create `ProductDto.kt` class and use annotations to parse data from Supabase
```kotlin
@Serializable