Skip to content

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

feat: update Figma auth docs (#39328)

Cemal Kılıçc86ff5bd3ade
diff --git a/apps/docs/content/guides/auth/social-login/auth-figma.mdx b/apps/docs/content/guides/auth/social-login/auth-figma.mdx
index f934234e9c8..79eb179aefd 100644
--- a/apps/docs/content/guides/auth/social-login/auth-figma.mdx
+++ b/apps/docs/content/guides/auth/social-login/auth-figma.mdx
@@ -10,35 +10,35 @@ To enable Figma Auth for your project, you need to set up a Figma OAuth applicat
Setting up Figma logins for your application consists of 3 parts:
-- Create and configure a Figma App on the [Figma Developers page](https://www.figma.com/developers).
+- Create and configure a Figma App on the [Figma Developers page](https://www.figma.com/developers/app).
- Add your Figma `client_id` and `client_secret` to your [Supabase Project](https://app.supabase.com).
- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js).
## Access the Figma Developers page
-- Go to the [Figma Developers page](https://www.figma.com/developers)
-- Click on `My apps` at the top right
+- Go to the [Figma Developers page](https://www.figma.com/developers/app)
- Log in (if necessary)
-![Figma Developers page](/docs/img/guides/auth-figma/figma_developers_page.png)
-
## Find your callback URL
<$Partial path="social_provider_setup.mdx" variables={{ "provider": "Figma" }} />
## Create a Figma OAuth app
-- Enter your `App name`, `Website URL` and upload your app logo
-- Click on `Add callback`
-- Add your `Callback URL`
-- Click on `Save`
+1. Enter your `App name`, select the owner for the app and click `Create app` button
+
+ ![Create Figma app](/docs/img/guides/auth-figma/figma_app_credentials.png)
+
+2. Copy and save your newly-generated `Client ID`
+3. Copy and save your newly-generated `Client Secret`
+4. Then, go to `OAuth credentials` and click on `Add a redirect URL` button
-![Create Figma app](/docs/img/guides/auth-figma/figma_create_app.png)
+ ![Add redirect URL](/docs/img/guides/auth-figma/figma_app_redirect_uri.png)
-- Copy and save your newly-generated `Client ID`
-- Copy and save your newly-generated `Client Secret`
+5. Add your URL from the previous step (callback URL on Supabase) and click on `Add` button
+6. Go to `OAuth scopes` and select `current_user:read` under `Users`.
-![Get Figma app credentials](/docs/img/guides/auth-figma/figma_app_credentials.png)
+![Select OAuth scopes](/docs/img/guides/auth-figma/figma_app_scopes.png)
## Enter your Figma credentials into your Supabase project
diff --git a/apps/docs/public/img/guides/auth-figma/figma_app_credentials.png b/apps/docs/public/img/guides/auth-figma/figma_app_credentials.png
old mode 100755
new mode 100644
index e4d582ab9fb..adb808acd82
Binary files a/apps/docs/public/img/guides/auth-figma/figma_app_credentials.png and b/apps/docs/public/img/guides/auth-figma/figma_app_credentials.png differ
diff --git a/apps/docs/public/img/guides/auth-figma/figma_app_redirect_uri.png b/apps/docs/public/img/guides/auth-figma/figma_app_redirect_uri.png
new file mode 100644
index 00000000000..d9e2d061234
Binary files /dev/null and b/apps/docs/public/img/guides/auth-figma/figma_app_redirect_uri.png differ
diff --git a/apps/docs/public/img/guides/auth-figma/figma_app_scopes.png b/apps/docs/public/img/guides/auth-figma/figma_app_scopes.png
new file mode 100644
index 00000000000..18ffc112c82
Binary files /dev/null and b/apps/docs/public/img/guides/auth-figma/figma_app_scopes.png differ
diff --git a/apps/docs/public/img/guides/auth-figma/figma_create_app.png b/apps/docs/public/img/guides/auth-figma/figma_create_app.png
deleted file mode 100755
index 7caeb2c0057..00000000000
Binary files a/apps/docs/public/img/guides/auth-figma/figma_create_app.png and /dev/null differ
diff --git a/apps/docs/public/img/guides/auth-figma/figma_developers_page.png b/apps/docs/public/img/guides/auth-figma/figma_developers_page.png
deleted file mode 100755
index 8ceee422d79..00000000000
Binary files a/apps/docs/public/img/guides/auth-figma/figma_developers_page.png and /dev/null differ