Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fixed signInWithOAuth example documentation (#21198)

Riccardo Cucia6e25cd693abb
diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.yml
index fc23e92847e..0221adc6339 100644
--- a/apps/docs/spec/supabase_dart_v2.yml
+++ b/apps/docs/spec/supabase_dart_v2.yml
@@ -274,7 +274,7 @@ functions:
isSpotlight: true
code: |
```dart
- await supabase.auth.signInWithOAuth(Provider.github);
+ await supabase.auth.signInWithOAuth(OAuthProvider.github);
```
- id: sign-in-using-a-third-party-provider-with-redirect
name: With `redirectTo`
@@ -284,7 +284,7 @@ functions:
code: |
```dart
await supabase.auth.signInWithOAuth(
- Provider.github,
+ OAuthProvider.github,
redirectTo: kIsWeb ? null : 'io.supabase.flutter://reset-callback/',
);
```
@@ -296,7 +296,7 @@ functions:
code: |
```dart
await supabase.auth.signInWithOAuth(
- Provider.github,
+ OAuthProvider.github,
scopes: 'repo gist notifications'
);
...