Skip to content

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

fix(docs): update broken oauth examples

Brad Haydon36d6c3806d2d
diff --git a/apps/docs/pages/guides/auth.mdx b/apps/docs/pages/guides/auth.mdx
index f12e0178821..735daed3dc0 100644
--- a/apps/docs/pages/guides/auth.mdx
+++ b/apps/docs/pages/guides/auth.mdx
@@ -100,7 +100,7 @@ const getURL = () => {
};
const { data, error } = await supabase.auth.signInWithOAuth({
- provider: 'github'
+ provider: 'github',
options: {
redirectTo: getURL()
}
diff --git a/spec/examples/examples.yml b/spec/examples/examples.yml
index 4960cd5d206..38933c31805 100644
--- a/spec/examples/examples.yml
+++ b/spec/examples/examples.yml
@@ -240,7 +240,7 @@ functions:
js: |
```js
const { data, error } = await supabase.auth.signInWithOAuth({
- provider: 'github'
+ provider: 'github',
options: {
redirectTo: 'https://example.com/welcome'
}
@@ -255,7 +255,7 @@ functions:
js: |
```js
const { data, error } = await supabase.auth.signInWithOAuth({
- provider: 'github'
+ provider: 'github',
options: {
scopes: 'repo gist notifications'
}
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml
index a498046b33c..144d9b079b0 100644
--- a/spec/supabase_js_v2.yml
+++ b/spec/supabase_js_v2.yml
@@ -297,7 +297,7 @@ functions:
code: |
```js
const { data, error } = await supabase.auth.signInWithOAuth({
- provider: 'github'
+ provider: 'github',
options: {
redirectTo: 'https://example.com/welcome'
}
@@ -312,7 +312,7 @@ functions:
code: |
```js
const { data, error } = await supabase.auth.signInWithOAuth({
- provider: 'github'
+ provider: 'github',
options: {
scopes: 'repo gist notifications'
}