Skip to content

Conversation

@TheUltDev
Copy link
Contributor

@TheUltDev TheUltDev commented Oct 4, 2025

What kind of change does this PR introduce?

Bug fix for new Figma OAuth policy and scopes.

What is the current behavior?

The files:read scope is used for Figma. It is now deprecated. For older apps, this requests too many permissions. For newer apps, or those who mistakenly started the upgrade process, this scope no longer works...

What is the new behavior?

The scope is changed to current_user:read which only requests name, avatar, and email as opposed to any file data.

Additional context

Workaround

This can be used until the PR is merged, note that scopes does not override but adds to the default, so queryParams is needed to override the query parameter entirely.

await supabase.auth.signInWithOAuth({
  provider: 'figma',
  options: {
    redirectTo,
    scopes: 'current_user:read',
    // Clear default scope workaround
    queryParams: {
      scope: 'current_user:read',
    },
  }
});

@TheUltDev TheUltDev requested a review from a team as a code owner October 4, 2025 23:00
@cemalkilic cemalkilic changed the title fix: default to current_user:read for Figma provider fix(social-auth): default to current_user:read for Figma provider Oct 7, 2025
@coveralls
Copy link

coveralls commented Oct 7, 2025

Pull Request Test Coverage Report for Build 19296809632

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 68.312%

Totals Coverage Status
Change from base Build 19294970498: 0.0%
Covered Lines: 14004
Relevant Lines: 20500

💛 - Coveralls

@cemalkilic
Copy link
Contributor

cemalkilic commented Nov 12, 2025

Thank you for the contribution!
Relevant docs update: supabase/supabase#39328

@cemalkilic cemalkilic merged commit f409d11 into supabase:master Nov 12, 2025
4 checks passed
cemalkilic pushed a commit that referenced this pull request Nov 24, 2025
🤖 I have created a release *beep* *boop*
---


##
[2.183.0](v2.182.1...v2.183.0)
(2025-11-20)


### Features

* async, concurrent index creation for users table
([#2239](#2239))
([a1146bf](a1146bf))
* **indexworker:** use `auth_trgm` extension if available
([#2263](#2263))
([05daa43](05daa43))
* **oauthserver:** add OpenID Connect support
([#2250](#2250))
([162788f](162788f))
* **oauthserver:** update oauth grant list & authorization details
response structure
([#2247](#2247))
([137ea92](137ea92))
* **oauthserver:** use `NewOAuthServerAuthorizationParams` &
configurable ttl for authorization
([#2254](#2254))
([61632f8](61632f8))


### Bug Fixes

* **indexworker:** detect which schema `pg_trgm` exists in
([#2260](#2260))
([4be12b3](4be12b3))
* look for refresh token on mfa verification only in v1
([#2249](#2249))
([2906b24](2906b24))
* mfa verify now works with refresh token algorithm v2
([#2246](#2246))
([4e8275f](4e8275f))
* **social-auth:** default to current_user:read for Figma provider
([#2195](#2195))
([f409d11](f409d11))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants