[PR #2415] [CLOSED] feat: add Figma OAuth2 provider #4306

Closed
opened 2026-03-13 11:41:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2415
Author: @ghost
Created: 4/23/2025
Status: Closed

Base: mainHead: feat/figmaprovider


📝 Commits (4)

  • be18aad feat: Figma provider
  • 59f17b5 fix(figmaprovider): add explicit type annotation for getUserInfo token
  • 2cb910e chore: register figma in socialProviders
  • 7d07a90 style: reorder socialProviders and clean up exports

📊 Changes

2 files changed (+93 additions, -0 deletions)

View changed files

packages/better-auth/src/social-providers/figma.ts (+90 -0)
📝 packages/better-auth/src/social-providers/index.ts (+3 -0)

📄 Description

PR Description

This pull request adds support for Figma as an OAuth2 provider within the better-auth library.

Key features:

  • Implements standard OAuth2 flow: authorization code → access token → user profile.
  • Retrieves user data from https://api.figma.com/v1/me.
  • Returns id, handle, email, and avatar (img_url).
  • Marks emails as verified (Figma ensures verified emails).
  • Supports custom scopes and profile mapping via options.

Ready for integration and extensibility.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/2415 **Author:** [@ghost](https://github.com/ghost) **Created:** 4/23/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/figmaprovider` --- ### 📝 Commits (4) - [`be18aad`](https://github.com/better-auth/better-auth/commit/be18aad4fee9547f028a5b71ffadbfa2e5ea3c1f) feat: Figma provider - [`59f17b5`](https://github.com/better-auth/better-auth/commit/59f17b5fde5dea18d06fbe1ae5749ae5942a9f7b) fix(figmaprovider): add explicit type annotation for getUserInfo token - [`2cb910e`](https://github.com/better-auth/better-auth/commit/2cb910e7aae3ba08973f383392b6ee2cca92c4b8) chore: register figma in socialProviders - [`7d07a90`](https://github.com/better-auth/better-auth/commit/7d07a900e40bcf9cd55e09d60615a41efd553bb6) style: reorder socialProviders and clean up exports ### 📊 Changes **2 files changed** (+93 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `packages/better-auth/src/social-providers/figma.ts` (+90 -0) 📝 `packages/better-auth/src/social-providers/index.ts` (+3 -0) </details> ### 📄 Description ### PR Description This pull request adds support for **Figma** as an OAuth2 provider within the `better-auth` library. #### Key features: - Implements standard OAuth2 flow: authorization code → access token → user profile. - Retrieves user data from `https://api.figma.com/v1/me`. - Returns `id`, `handle`, `email`, and `avatar` (img_url). - Marks emails as verified (Figma ensures verified emails). - Supports custom scopes and profile mapping via `options`. Ready for integration and extensibility. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 11:41:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#4306