The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Improve docs
Jan Tennert1e16460244cb
diff --git a/spec/supabase_kt_v0.yml b/spec/supabase_kt_v0.ymlindex cb18c10013f..3be385b3168 100644--- a/spec/supabase_kt_v0.yml+++ b/spec/supabase_kt_v0.yml@@ -45,18 +45,26 @@ functions:1. **Setup a deeplink for you app** \On Android you may setup a [deeplink](https://developer.android.com/training/app-links/deep-linking) in your Android manifest. \On IOS & MacOS you may setup a [url scheme](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app).- 2. **Configure the GoTrue plugin**+ 2. **Add your deeplink to the [redirect URLs](https://supabase.com/dashboard/project/_/auth/url-configuration)** \+ **Pattern**: scheme://host+ 3. **Configure the GoTrue plugin**You have to set the `host` and the `scheme` in the GoTrue config:```kotlininstall(GoTrue) {- host = "deeplink host"+ host = "deeplink host" //that can be anything for example your package name, app/company url. (Not your supabase url)scheme = "deeplink scheme"}```- 3. **Call platform specific function on startup** \+ 4. **Call platform specific function on startup** \On Android: `client.handleDeeplinks(intent)` \On IOS/MacOS: `client.handleDeeplinks(url)`+ Then you can just login using OAuth:+ ```kotlin+ client.gotrue.loginWith(Google)+ ```+ Or open OTP links directly in your app.+### PKCE Authentication flowsuapbase-kt supports the [PKCE authentication flow](https://supabase.com/blog/supabase-auth-sso-pkce).To use it, you just have to change the `flowType` in the GoTrue configuration:@@ -65,6 +73,7 @@ functions:flowType = FlowType.PKCE}```+ That's it! If you already implemented deeplinks to handle OTPs and OAuth you don't have to change anything!examples:- id: initialize-clientname: Initialize Client