Skip to content

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

Adding provider scope example (#16178)

jbawb7218ee233df1
diff --git a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
index 6bd4ee213d1..e496b224e2a 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
@@ -96,6 +96,25 @@ Options are available via `queryParams`:
/>
```
+### Provider Scopes
+
+Provider Scopes can be requested through `providerScope`;
+
+```jsx
+<Auth
+ supabaseClient={supabase}
+ providers={['google']}
+ queryParams={{
+ access_type: 'offline',
+ prompt: 'consent',
+ hd: 'domain.com',
+ }}
+ providerScopes={{
+ google: 'https://www.googleapis.com/auth/calendar.readonly',
+ }}
+/>
+```
+
### Supported Views
The Auth component is currently shipped with the following views: