From 78e9f6655aaa43581dfc8bc596d974dbbf4eead4 Mon Sep 17 00:00:00 2001 From: dshukertjr <18113850+dshukertjr@users.noreply.github.com> Date: Fri, 14 Apr 2023 00:30:57 +0900 Subject: [PATCH] Add sign in with apple to Flutter reference docs --- spec/common-client-libs-sections.json | 7 +++++++ spec/supabase_dart_v1.yml | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/spec/common-client-libs-sections.json b/spec/common-client-libs-sections.json index 2bdbc7ae3a2..d5721f6bfae 100644 --- a/spec/common-client-libs-sections.json +++ b/spec/common-client-libs-sections.json @@ -425,6 +425,13 @@ "product": "auth", "type": "function" }, + { + "id": "sign-in-with-apple", + "title": "Sign in with Apple", + "slug": "sign-in-with-apple", + "product": "auth", + "type": "function" + }, { "id": "sign-in-with-oauth", "title": "Sign in a user through OAuth", diff --git a/spec/supabase_dart_v1.yml b/spec/supabase_dart_v1.yml index 1da09b8a82c..16f197da0a4 100644 --- a/spec/supabase_dart_v1.yml +++ b/spec/supabase_dart_v1.yml @@ -165,6 +165,22 @@ functions: phone: '+13334445555', ); ``` + - id: sign-in-with-apple + title: 'signInWithApple()' + description: | + Signs in a user using native Apple login. + notes: | + - You need to [register your bundle ID](https://developer.apple.com/help/account/manage-identifiers/register-an-app-id/) and add it to Supabase dashboard. + - This method is only available in iOS and MacOS + - For other platforms, [signInWithOAuth()](https://supabase.com/docs/reference/dart/auth-signinwithoauth) should be used. + examples: + - id: sign-in-with-apple + name: Sign in with Apple + isSpotlight: true + code: | + ```dart + final AuthResponse = await supabase.auth.signInWithApple(); + ``` - id: sign-in-with-oauth title: 'signInWithOAuth()' description: |