The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Add redirectTo and authScreenLaunchMode parameter to signInWith OAuth calls in Flutter docs (#29407)
Tylerfe2538304765
diff --git a/apps/docs/content/guides/auth/social-login/auth-apple.mdx b/apps/docs/content/guides/auth/social-login/auth-apple.mdxindex 5daf062c6c5..df5ba7c745b 100644--- a/apps/docs/content/guides/auth/social-login/auth-apple.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-apple.mdx@@ -258,9 +258,11 @@ When developing with Expo, you can test Sign in with Apple via the Expo Go app,This method of signing in is web based, and will open a browser window to perform the sign in. For non-web platforms, the user is brought back to the app via [deep linking](/docs/guides/auth/native-mobile-deep-linking?platform=flutter).```dart- supabase.auth.signInWithOAuth(+ await supabase.auth.signInWithOAuth(OAuthProvider.apple,- redirectTo: 'my-scheme://login-callback',+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.);```diff --git a/apps/docs/content/guides/auth/social-login/auth-azure.mdx b/apps/docs/content/guides/auth/social-login/auth-azure.mdxindex 11a1fe9997e..47f6b95dfb6 100644--- a/apps/docs/content/guides/auth/social-login/auth-azure.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-azure.mdx@@ -148,7 +148,9 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signFuture<void> signInWithAzure() async {await supabase.auth.signInWithOAuth(OAuthProvider.azure,- scopes: 'email',+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.);}```diff --git a/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx b/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdxindex d885dfd763f..7c3d394a00c 100644--- a/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx@@ -74,7 +74,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithBitbucket() async {- await supabase.auth.signInWithOAuth(OAuthProvider.bitbucket);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.bitbucket,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-discord.mdx b/apps/docs/content/guides/auth/social-login/auth-discord.mdxindex 285189ec891..6dd8161b465 100644--- a/apps/docs/content/guides/auth/social-login/auth-discord.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-discord.mdx@@ -73,7 +73,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithDiscord() async {- await supabase.auth.signInWithOAuth(OAuthProvider.discord);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.discord,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-facebook.mdx b/apps/docs/content/guides/auth/social-login/auth-facebook.mdxindex d9dc09a8679..12a71a089d0 100644--- a/apps/docs/content/guides/auth/social-login/auth-facebook.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-facebook.mdx@@ -90,7 +90,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithFacebook() async {- await supabase.auth.signInWithOAuth(OAuthProvider.facebook);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.facebook,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-figma.mdx b/apps/docs/content/guides/auth/social-login/auth-figma.mdxindex 17bcf0a375f..ea3f979930a 100644--- a/apps/docs/content/guides/auth/social-login/auth-figma.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-figma.mdx@@ -72,9 +72,14 @@ async function signInWithFigma() {When your user signs in, call [signInWithOAuth()](/docs/reference/flutter/auth-signinwithoauth) with `figma` as the `provider`:-```js+```dartFuture<void> signInWithFigma() async {- await supabase.auth.signInWithOAuth(OAuthProvider.figma);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.figma,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-github.mdx b/apps/docs/content/guides/auth/social-login/auth-github.mdxindex 260264e9d4e..70b3e077f61 100644--- a/apps/docs/content/guides/auth/social-login/auth-github.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-github.mdx@@ -68,7 +68,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithGithub() async {- await supabase.auth.signInWithOAuth(OAuthProvider.github);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.github,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx b/apps/docs/content/guides/auth/social-login/auth-gitlab.mdxindex 0aa3765cb36..067bbaeab92 100644--- a/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx@@ -71,7 +71,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithGitLab() async {- await supabase.auth.signInWithOAuth(OAuthProvider.gitlab);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.gitlab,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-google.mdx b/apps/docs/content/guides/auth/social-login/auth-google.mdxindex 3d864727e99..e747e597111 100644--- a/apps/docs/content/guides/auth/social-login/auth-google.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-google.mdx@@ -551,9 +551,11 @@ Google sign-in with Supabase on Web, macOS, Windows, and Linux is done through tThis method of signing in is web based, and will open a browser window to perform the sign in. For non-web platforms, the user is brought back to the app via [deep linking](/docs/guides/auth/native-mobile-deep-linking?platform=flutter).```dart-supabase.auth.signInWithOAuth(+await supabase.auth.signInWithOAuth(OAuthProvider.google,- redirectTo: 'my-scheme://login-callback',+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.);```diff --git a/apps/docs/content/guides/auth/social-login/auth-kakao.mdx b/apps/docs/content/guides/auth/social-login/auth-kakao.mdxindex cb1715c992a..ca54ed737dc 100644--- a/apps/docs/content/guides/auth/social-login/auth-kakao.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-kakao.mdx@@ -96,7 +96,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithKakao() async {- await supabase.auth.signInWithOAuth(OAuthProvider.kakao);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.kakao,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx b/apps/docs/content/guides/auth/social-login/auth-keycloak.mdxindex 53c8f7d3bb9..06750243cb2 100644--- a/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx@@ -94,7 +94,9 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signFuture<void> signInWithKeycloak() async {await supabase.auth.signInWithOAuth(OAuthProvider.keycloak,- scopes: 'openid',+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.);}```diff --git a/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx b/apps/docs/content/guides/auth/social-login/auth-linkedin.mdxindex 6df1e65cf47..3e80f7dd1ce 100644--- a/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx@@ -82,7 +82,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithLinkedIn() async {- await supabase.auth.signInWithOAuth(OAuthProvider.linkedinOidc);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.linkedinOidc,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-notion.mdx b/apps/docs/content/guides/auth/social-login/auth-notion.mdxindex 28623884fcc..91674a09e1a 100644--- a/apps/docs/content/guides/auth/social-login/auth-notion.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-notion.mdx@@ -74,7 +74,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithNotion() async {- await supabase.auth.signInWithOAuth(OAuthProvider.notion);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.notion,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-slack.mdx b/apps/docs/content/guides/auth/social-login/auth-slack.mdxindex af0f8a0c4b3..ea858493257 100644--- a/apps/docs/content/guides/auth/social-login/auth-slack.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-slack.mdx@@ -92,7 +92,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithSlack() async {- await supabase.auth.signInWithOAuth(OAuthProvider.slack);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.slack,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-spotify.mdx b/apps/docs/content/guides/auth/social-login/auth-spotify.mdxindex 1b7c4e43eba..987492dde18 100644--- a/apps/docs/content/guides/auth/social-login/auth-spotify.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-spotify.mdx@@ -86,7 +86,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithSpotify() async {- await supabase.auth.signInWithOAuth(OAuthProvider.spotify);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.spotify,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-twitch.mdx b/apps/docs/content/guides/auth/social-login/auth-twitch.mdxindex a22a2d36489..97f17026a45 100644--- a/apps/docs/content/guides/auth/social-login/auth-twitch.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-twitch.mdx@@ -89,7 +89,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithTwitch() async {- await supabase.auth.signInWithOAuth(OAuthProvider.twitch);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.twitch,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-twitter.mdx b/apps/docs/content/guides/auth/social-login/auth-twitter.mdxindex aa6c8ee885a..0cd3fe30edb 100644--- a/apps/docs/content/guides/auth/social-login/auth-twitter.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-twitter.mdx@@ -80,7 +80,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithTwitter() async {- await supabase.auth.signInWithOAuth(OAuthProvider.twitter);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.twitter,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/content/guides/auth/social-login/auth-workos.mdx b/apps/docs/content/guides/auth/social-login/auth-workos.mdxindex 0f98f201dd1..f09fd573980 100644--- a/apps/docs/content/guides/auth/social-login/auth-workos.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-workos.mdx@@ -89,6 +89,9 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signFuture<void> signInWithWorkOS() async {await supabase.auth.signInWithOAuth(OAuthProvider.workos,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.queryParams: {'connection': '<your_connection>','organization': '<your_organization',diff --git a/apps/docs/content/guides/auth/social-login/auth-zoom.mdx b/apps/docs/content/guides/auth/social-login/auth-zoom.mdxindex 01a5ebf181d..e10102550cc 100644--- a/apps/docs/content/guides/auth/social-login/auth-zoom.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-zoom.mdx@@ -87,7 +87,12 @@ When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-sign```dartFuture<void> signInWithZoom() async {- await supabase.auth.signInWithOAuth(OAuthProvider.zoom);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.zoom,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );}```diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.ymlindex fc9ed739ef3..200e0dfe941 100644--- a/apps/docs/spec/supabase_dart_v2.yml+++ b/apps/docs/spec/supabase_dart_v2.yml@@ -753,7 +753,12 @@ functions:isSpotlight: truecode: |```dart- await supabase.auth.signInWithOAuth(OAuthProvider.github);+ await supabase.auth.signInWithOAuth(+ OAuthProvider.github,+ redirectTo: kIsWeb ? null : 'my.scheme://my-host', // Optionally set the redirect link to bring back the user via deeplink.+ authScreenLaunchMode:+ kIsWeb ? LaunchMode.platformDefault : LaunchMode.externalApplication, // Launch the auth screen in a new webview on mobile.+ );```- id: sign-in-using-a-third-party-provider-with-redirectname: With `redirectTo`