Skip to content

Commit 205fe84

Browse files
committed
docs: Update README to include redirect URL configuration for KMAuthSupabase initialization
1 parent 9dabe70 commit 205fe84

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,17 @@ KMAuthInitializer.initialize(KMAuthConfig.forGoogle(webClientId = "YOUR_WEB_CLIE
3838

3939
// For Sign In With Apple or other providers, we need to call KMAuthSupabase.initialize method from common code
4040
KMAuthSupabase.initialize(
41-
KMAuthConfig.forSupabase(
41+
config = KMAuthConfig.forSupabase(
4242
supabaseUrl = "YOUR_SUPABASE_URL",
4343
supabaseKey = "YOUR_SUPABASE_KEY",
4444
deepLinkHost = "YOUR_DEEP_LINK_HOST",
4545
deepLinkScheme = "YOUR_DEEP_LINK_SCHEME",
46-
)
46+
),
47+
redirectUrl = "YOUR_REDIRECT_URL"
4748
)
49+
50+
// Also if you need to provide different redirect urls, you can call KMAuthSupabase.initialize method from platform specific code for each platform.
51+
// Also sometime if supabase does not pickup redirect urls from supabase dashboard, in that case you can provide it in initialize method.
4852
```
4953

5054
We need webClientId from Google Cloud Platform Console to setup the serverClientId in Google API for

0 commit comments

Comments
 (0)