The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Add Flutter / Dart sample codes into the guides. (#27106)
Tylerb4e3f47008a8
diff --git a/apps/docs/content/guides/api/using-custom-schemas.mdx b/apps/docs/content/guides/api/using-custom-schemas.mdxindex 3e2cded951f..52cf16c3f5f 100644--- a/apps/docs/content/guides/api/using-custom-schemas.mdx+++ b/apps/docs/content/guides/api/using-custom-schemas.mdx@@ -37,6 +37,28 @@ const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY, { db: { schema: '// Make a requestconst { data: todos, error } = await supabase.from('todos').select('*')++// You can also change the target schema on a per-query basis+const { data: todos, error } = await supabase.schema('myschema').from('todos').select('*')+```++</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+// Initialize the Flutter client+await Supabase.initialize(+ url: supabaseUrl,+ anonKey: supabaseKey,+ postgrestOptions: const PostgrestClientOptions(schema: 'myschema'),+);+final supabase = Supabase.instance.client;++// Make a request+final data = await supabase.from('todos').select();++// You can also change the target schema on a per-query basis+final data = await supabase.schema('myschema').from('todos').select();```</TabPanel>diff --git a/apps/docs/content/guides/auth/auth-identity-linking.mdx b/apps/docs/content/guides/auth/auth-identity-linking.mdxindex a8e4614ccea..0904a8cd8c3 100644--- a/apps/docs/content/guides/auth/auth-identity-linking.mdx+++ b/apps/docs/content/guides/auth/auth-identity-linking.mdx@@ -37,6 +37,15 @@ Supabase Auth allows a user to initiate identity linking with a different emailconst { data, error } = await supabase.auth.linkIdentity({ provider: 'google' })```+</TabPanel>+<TabPanel id="dart" label="Dart">++Supabase Auth allows a user to initiate identity linking with a different email address when they are logged in. To link an OAuth identity to the user, call [`linkIdentity()`](/docs/reference/dart/auth-linkidentity):++```dart+await supabase.auth.linkIdentity(OAuthProvider.google);+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -86,6 +95,23 @@ const googleIdentity = identities.find((identity) => identity.provider === 'googconst { data, error } = await supabase.auth.unlinkIdentity(googleIdentity)```+</TabPanel>+<TabPanel id="dart" label="Dart">++You can use [`getUserIdentities()`](/docs/reference/dart/auth-getuseridentities) to fetch all the identities linked to a user. Then, call [`unlinkIdentity()`](/docs/reference/dart/auth-unlinkidentity) to unlink the identity. The user needs to be logged in and have at least 2 linked identities in order to unlink an existing identity.++```dart+// retrieve all identities linked to a user+final List<UserIdentity> identities = await supabase.auth.getUserIdentities();++// find the google identity linked to the user+final UserIdentity googleIdentity =+ identities.singleWhere((identity) => identity.provider == 'google');++// unlink the google identity from the user+await supabase.auth.unlinkIdentity(googleIdentity);+```+</TabPanel><TabPanel id="swift" label="Swift">diff --git a/apps/docs/content/guides/auth/managing-user-data.mdx b/apps/docs/content/guides/auth/managing-user-data.mdxindex 05f1ec57b61..5b90fc9fa75 100644--- a/apps/docs/content/guides/auth/managing-user-data.mdx+++ b/apps/docs/content/guides/auth/managing-user-data.mdx@@ -80,6 +80,20 @@ const { data, error } = await supabase.auth.signUp({})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final res = await supabase.auth.signUp(+ email: '[email protected]',+ password: 'example-password',+ data: {+ 'first_name': 'John',+ 'age': 27,+ },+);+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -129,6 +143,14 @@ const {let metadata = user.user_metadata```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final User? user = supabase.auth.currentUser;+final Map<String, dynamic>? metadata = user?.userMetadata;+```+</TabPanel><TabPanel id="swift" label="Swift">diff --git a/apps/docs/content/guides/auth/native-mobile-deep-linking.mdx b/apps/docs/content/guides/auth/native-mobile-deep-linking.mdxindex d8e62401c87..d8ec66771b5 100644--- a/apps/docs/content/guides/auth/native-mobile-deep-linking.mdx+++ b/apps/docs/content/guides/auth/native-mobile-deep-linking.mdx@@ -113,7 +113,7 @@ With Deep Linking, you can configure this redirect to open a specific page. This</TabPanel><TabPanel id="flutter" label="Flutter">- \*Currently supabase_flutter supports deep links on Android, iOS, Web, MacOS and Windows.+ // Currently supabase_flutter supports deep links on Android, iOS, Web, MacOS and Windows.### Deep link configdiff --git a/apps/docs/content/guides/auth/signout.mdx b/apps/docs/content/guides/auth/signout.mdxindex dcac1ebb600..e277575dd38 100644--- a/apps/docs/content/guides/auth/signout.mdx+++ b/apps/docs/content/guides/auth/signout.mdx@@ -60,7 +60,16 @@ Supabase Auth allows you to specify three different scopes for when a user invokYou can invoke these by providing the `scope` option:-```typescript+<Tabs+ scrollable+ size="small"+ type="underlined"+ defaultActiveId="js"+ queryGroup="language"+>+<TabPanel id="js" label="JavaScript">++```js// defaults to the global scopeawait supabase.auth.signOut()@@ -68,6 +77,31 @@ await supabase.auth.signOut()await supabase.auth.signOut({ scope: 'local' })```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+// defaults to the local scope+await supabase.auth.signOut();++// sign out from all sessions+await supabase.auth.signOut(scope: SignOutScope.global);+```++</TabPanel>+<TabPanel id="kotlin" label="Kotlin">++```kotlin+// defaults to the local scope+await supabase.auth.signOut();++// sign out from all sessions+supabase.auth.signOut(SignOutScope.GLOBAL)+```++</TabPanel>+</Tabs>+Upon sign out, all refresh tokens and potentially other database objects related to the affected sessions are destroyed and the client library removes the session stored in the local storage medium.<Admonition type="caution">diff --git a/apps/docs/content/guides/auth/social-login/auth-azure.mdx b/apps/docs/content/guides/auth/social-login/auth-azure.mdxindex b5cc1dddc97..7ec495d96de 100644--- a/apps/docs/content/guides/auth/social-login/auth-azure.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-azure.mdx@@ -137,6 +137,20 @@ async function signInWithAzure() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `azure` as the `provider`:++```dart+Future<void> signInWithAzure() async {+ await supabase.auth.signInWithOAuth(+ OAuthProvider.azure,+ scopes: 'email',+ );+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -172,14 +186,25 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {- supabase.auth.signOut()+ supabase.auth.signOut()}```@@ -210,6 +235,18 @@ async function signInWithAzure() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++```dart+Future<void> signInWithAzure() async {+ await supabase.auth.signInWithOAuth(+ OAuthProvider.azure,+ scopes: 'offline_access',+ );+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">diff --git a/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx b/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdxindex bb1f230db6a..c22cd02fd8f 100644--- a/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-bitbucket.mdx@@ -65,6 +65,17 @@ async function signInWithBitbucket() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `bitbucket` as the `provider`:++```dart+Future<void> signInWithBitbucket() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.bitbucket);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -98,10 +109,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-discord.mdx b/apps/docs/content/guides/auth/social-login/auth-discord.mdxindex fe41cefa362..4f3be5a850a 100644--- a/apps/docs/content/guides/auth/social-login/auth-discord.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-discord.mdx@@ -64,6 +64,17 @@ async function signInWithDiscord() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `discord` as the `provider`:++```dart+Future<void> signInWithDiscord() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.discord);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -99,10 +110,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-facebook.mdx b/apps/docs/content/guides/auth/social-login/auth-facebook.mdxindex 378021e1d2d..0f08e553143 100644--- a/apps/docs/content/guides/auth/social-login/auth-facebook.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-facebook.mdx@@ -81,6 +81,17 @@ async function signInWithFacebook() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `facebook` as the `provider`:++```dart+Future<void> signInWithFacebook() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.facebook);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -114,10 +125,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-figma.mdx b/apps/docs/content/guides/auth/social-login/auth-figma.mdxindex 85e33158f94..eeebb78f10c 100644--- a/apps/docs/content/guides/auth/social-login/auth-figma.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-figma.mdx@@ -65,6 +65,17 @@ async function signInWithFigma() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/flutter/auth-signinwithoauth) with `figma` as the `provider`:++```js+Future<void> signInWithFigma() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.figma);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -98,10 +109,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-github.mdx b/apps/docs/content/guides/auth/social-login/auth-github.mdxindex 55ec81bbe49..2f2088e9b44 100644--- a/apps/docs/content/guides/auth/social-login/auth-github.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-github.mdx@@ -76,6 +76,17 @@ async function signInWithGithub() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `github` as the `provider`:++```dart+Future<void> signInWithGithub() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.github);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -109,10 +120,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx b/apps/docs/content/guides/auth/social-login/auth-gitlab.mdxindex 80a8d63c5bb..add9691c126 100644--- a/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-gitlab.mdx@@ -62,6 +62,17 @@ async function signInWithGitLab() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `gitlab` as the `provider`:++```dart+Future<void> signInWithGitLab() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.gitlab);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -95,10 +106,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-kakao.mdx b/apps/docs/content/guides/auth/social-login/auth-kakao.mdxindex 02db77ea28c..bc51242ca33 100644--- a/apps/docs/content/guides/auth/social-login/auth-kakao.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-kakao.mdx@@ -87,6 +87,17 @@ async function signInWithKakao() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `kakao` as the `provider`:++```dart+Future<void> signInWithKakao() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.kakao);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -120,10 +131,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx b/apps/docs/content/guides/auth/social-login/auth-keycloak.mdxindex bcea451db47..1489a97b15b 100644--- a/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-keycloak.mdx@@ -83,6 +83,20 @@ async function signInWithKeycloak() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `keycloak` as the `provider`:++```dart+Future<void> signInWithKeycloak() async {+ await supabase.auth.signInWithOAuth(+ OAuthProvider.keycloak,+ scopes: 'openid',+ );+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -118,10 +132,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx b/apps/docs/content/guides/auth/social-login/auth-linkedin.mdxindex a06ee4d461a..ad4e6369ad5 100644--- a/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-linkedin.mdx@@ -73,6 +73,17 @@ async function signInWithLinkedIn() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `linkedin_oidc` as the `provider`:++```dart+Future<void> signInWithLinkedIn() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.linkedinOidc);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -106,10 +117,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-notion.mdx b/apps/docs/content/guides/auth/social-login/auth-notion.mdxindex a7e7fe8d9d0..3636421b25f 100644--- a/apps/docs/content/guides/auth/social-login/auth-notion.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-notion.mdx@@ -65,6 +65,17 @@ async function signInWithNotion() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `notion` as the `provider`:++```dart+Future<void> signInWithNotion() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.notion);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -98,10 +109,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-slack.mdx b/apps/docs/content/guides/auth/social-login/auth-slack.mdxindex ffdd4672043..338ead28965 100644--- a/apps/docs/content/guides/auth/social-login/auth-slack.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-slack.mdx@@ -83,6 +83,17 @@ async function signInWithSlack() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `slack` as the `provider`:++```dart+Future<void> signInWithSlack() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.slack);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -116,10 +127,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-spotify.mdx b/apps/docs/content/guides/auth/social-login/auth-spotify.mdxindex 65fabad0f26..a3255e35aa8 100644--- a/apps/docs/content/guides/auth/social-login/auth-spotify.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-spotify.mdx@@ -77,6 +77,17 @@ async function signInWithSpotify() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `spotify` as the `provider`:++```dart+Future<void> signInWithSpotify() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.spotify);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -110,10 +121,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-twitch.mdx b/apps/docs/content/guides/auth/social-login/auth-twitch.mdxindex d3419b8211a..6a215f1f524 100644--- a/apps/docs/content/guides/auth/social-login/auth-twitch.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-twitch.mdx@@ -80,6 +80,17 @@ async function signInWithTwitch() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `twitch` as the `provider`:++```dart+Future<void> signInWithTwitch() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.twitch);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -113,10 +124,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-twitter.mdx b/apps/docs/content/guides/auth/social-login/auth-twitter.mdxindex 57c038fac38..ddc5a3defdc 100644--- a/apps/docs/content/guides/auth/social-login/auth-twitter.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-twitter.mdx@@ -71,6 +71,17 @@ async function signInWithTwitter() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `twitter` as the `provider`:++```dart+Future<void> signInWithTwitter() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.twitter);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -104,10 +115,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-workos.mdx b/apps/docs/content/guides/auth/social-login/auth-workos.mdxindex 6ec037c8223..6020d4bfe6d 100644--- a/apps/docs/content/guides/auth/social-login/auth-workos.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-workos.mdx@@ -78,6 +78,26 @@ async function signInWithWorkOS() {Refer to the [WorkOS Documentation](https://workos.com/docs/reference/sso/authorize/) to learn more about the different methods.+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `workos` as the `provider`:++```dart+Future<void> signInWithWorkOS() async {+ await supabase.auth.signInWithOAuth(+ OAuthProvider.workos,+ queryParams: {+ 'connection': '<your_connection>',+ 'organization': '<your_organization',+ 'workos_provider': '<your_provider>',+ },+ );+}+```++Refer to the [WorkOS Documentation](https://workos.com/docs/reference/sso/authorize/) to learn more about the different methods.+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -117,10 +137,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/auth/social-login/auth-zoom.mdx b/apps/docs/content/guides/auth/social-login/auth-zoom.mdxindex 659aa1c0272..3990778e35f 100644--- a/apps/docs/content/guides/auth/social-login/auth-zoom.mdx+++ b/apps/docs/content/guides/auth/social-login/auth-zoom.mdx@@ -78,6 +78,17 @@ async function signInWithZoom() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs in, call [signInWithOAuth()](/docs/reference/dart/auth-signinwithoauth) with `zoom` as the `provider`:++```dart+Future<void> signInWithZoom() async {+ await supabase.auth.signInWithOAuth(OAuthProvider.zoom);+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">@@ -111,10 +122,21 @@ async function signOut() {}```+</TabPanel>+<TabPanel id="flutter" label="Flutter">++When your user signs out, call [signOut()](/docs/reference/dart/auth-signout) to remove them from the browser session and any objects from localStorage:++```dart+Future<void> signOut() async {+ await supabase.auth.signOut();+}+```+</TabPanel><TabPanel id="kotlin" label="Kotlin">-When your user signs out, call [logout()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:+When your user signs out, call [signOut()](/docs/reference/kotlin/auth-signout) to remove them from the browser session and any objects from localStorage:```kotlinsuspend fun signOut() {diff --git a/apps/docs/content/guides/database/joins-and-nesting.mdx b/apps/docs/content/guides/database/joins-and-nesting.mdxindex 18584fded25..c151250e9ae 100644--- a/apps/docs/content/guides/database/joins-and-nesting.mdx+++ b/apps/docs/content/guides/database/joins-and-nesting.mdx@@ -369,6 +369,20 @@ const { data, error } = await supabase.from('shifts').select()```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final data = await supabase.from('shifts').select('''+ *,+ scans:scan_id_start (+ id,+ user_id,+ badge_scan_time+ )+''');+```+</TabPanel><TabPanel id="swift" label="Swift">diff --git a/apps/docs/content/guides/database/json.mdx b/apps/docs/content/guides/database/json.mdxindex 52a0a450031..8a301fd24c1 100644--- a/apps/docs/content/guides/database/json.mdx+++ b/apps/docs/content/guides/database/json.mdx@@ -178,6 +178,60 @@ const { data, error } = await supabase.from('books').insert([])```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+await supabase.from('books').insert([+ {+ 'title': 'The Poky Little Puppy',+ 'author': 'Janette Sebring Lowrey',+ 'metadata': {+ 'description': 'Puppy is slower than other, bigger animals.',+ 'price': 5.95,+ 'ages': [3, 6],+ },+ },+ {+ 'title': 'The Tale of Peter Rabbit',+ 'author': 'Beatrix Potter',+ 'metadata': {+ 'description': 'Rabbit eats some vegetables.',+ 'price': 4.49,+ 'ages': [2, 5],+ },+ },+ {+ 'title': 'Tootle',+ 'author': 'Gertrude Crampton',+ 'metadata': {+ 'description': 'Little toy train has big dreams.',+ 'price': 3.99,+ 'ages': [2, 5],+ },+ },+ {+ 'title': 'Green Eggs and Ham',+ 'author': 'Dr. Seuss',+ 'metadata': {+ 'description':+ 'Sam has changing food preferences and eats unusually colored food.',+ 'price': 7.49,+ 'ages': [4, 8],+ },+ },+ {+ 'title': 'Harry Potter and the Goblet of Fire',+ 'author': 'J.K. Rowling',+ 'metadata': {+ 'description': 'Fourth year of school starts, big drama ensues.',+ 'price': 24.95,+ 'ages': [10, 99],+ },+ },+]);+```+</TabPanel><TabPanel id="swift" label="Swift">diff --git a/apps/docs/content/guides/storage/serving/image-transformations.mdx b/apps/docs/content/guides/storage/serving/image-transformations.mdxindex e35b831b7a8..aa1e1ebfb67 100644--- a/apps/docs/content/guides/storage/serving/image-transformations.mdx+++ b/apps/docs/content/guides/storage/serving/image-transformations.mdx@@ -17,6 +17,8 @@ Image Resizing is currently enabled for [Pro plan and above](https://supabase.co## Get a public URL for a transformed image+Our client libraries methods like `getPublicUrl` and `createSignedUrl` support the `transform` option. This returns the URL that serves the transformed image.+<Tabsscrollablesize="small"@@ -26,8 +28,6 @@ Image Resizing is currently enabled for [Pro plan and above](https://supabase.co><TabPanel id="js" label="JavaScript">-Our client libraries methods like `getPublicUrl` and `createSignedUrl` support the `transform` option. This returns the URL that serves the transformed image.-```tssupabase.storage.from('bucket').getPublicUrl('image.jpg', {transform: {@@ -37,6 +37,19 @@ supabase.storage.from('bucket').getPublicUrl('image.jpg', {})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final url = supabase.storage.from('bucket').getPublicUrl(+ 'image.jpg',+ transform: const TransformOptions(+ width: 500,+ height: 600,+ ),+ );+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -86,6 +99,20 @@ supabase.storage.from('bucket').createSignedUrl('image.jpg', 60000, {})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final url = await supabase.storage.from('bucket').createSignedUrl(+ 'image.jpg',+ 60000,+ transform: const TransformOptions(+ width: 200,+ height: 200,+ ),+ );+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -137,6 +164,19 @@ supabase.storage.from('bucket').download('image.jpg', {})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final data = await supabase.storage.from('bucket').download(+ 'image.jpg',+ transform: const TransformOptions(+ width: 800,+ height: 300,+ ),+ );+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -195,7 +235,7 @@ In case you'd like to return the original format of the image and **opt-out** fr<TabPanel id="js" label="JavaScript">```ts-await storage.from('bucket').download('image.jpeg', {+await supabase.storage.from('bucket').download('image.jpeg', {transform: {width: 200,height: 200,@@ -204,6 +244,20 @@ await storage.from('bucket').download('image.jpeg', {})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final data = await supabase.storage.from('bucket').download(+ 'image.jpeg',+ transform: const TransformOptions(+ width: 200,+ height: 200,+ format: RequestImageFormat.origin,+ ),+ );+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -301,6 +355,18 @@ supabase.storage.from('bucket').download('image.jpg', {})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final data = await supabase.storage.from('bucket').download(+ 'image.jpg',+ transform: const TransformOptions(+ quality: 50,+ ),+ );+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -369,6 +435,20 @@ supabase.storage.from('bucket').download('image.jpg', {})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+final data = supabase.storage.from('bucket').download(+ 'image.jpg',+ transform: const TransformOptions(+ width: 800,+ height: 300,+ resize: ResizeMode.contain, // 'cover' | 'fill'+ ),+ );+```+</TabPanel><TabPanel id="swift" label="Swift">diff --git a/apps/docs/content/guides/storage/uploads/standard-uploads.mdx b/apps/docs/content/guides/storage/uploads/standard-uploads.mdxindex a38a23e2691..dde2143ae9a 100644--- a/apps/docs/content/guides/storage/uploads/standard-uploads.mdx+++ b/apps/docs/content/guides/storage/uploads/standard-uploads.mdx@@ -44,6 +44,16 @@ async function uploadFile(file) {}```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+// Upload file using standard upload+Future<void> uploadFile(File file) async {+ await supabase.storage.from('bucket_name').upload('file_path', file);+}+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -100,6 +110,17 @@ await supabase.storage.from('bucket_name').upload('file_path', file, {})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+await supabase.storage.from('bucket_name').upload(+ 'file_path',+ file,+ fileOptions: const FileOptions(upsert: true),+ );+```+</TabPanel><TabPanel id="swift" label="Swift">@@ -147,6 +168,17 @@ await supabase.storage.from('bucket_name').upload('file_path', file, {})```+</TabPanel>+<TabPanel id="dart" label="Dart">++```dart+await supabase.storage.from('bucket_name').upload(+ 'file_path',+ file,+ fileOptions: const FileOptions(contentType: 'image/jpeg'),+ );+```+</TabPanel><TabPanel id="swift" label="Swift">