Skip to content

Conversation

TheUltDev
Copy link

@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
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.

1 participant