Add sign in with apple to Flutter reference docs

This commit is contained in:
dshukertjr committed 2023-04-14 00:30:57 +09:00
1 parent 3dc0b7077d
commit 78e9f6655a
2 files changed
+23

No files matched your search

+7
View File
@@ -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",
+16
View File
@@ -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: |