[PR #4134] [MERGED] feat: add figma provider #13456

Closed
opened 2026-04-13 08:57:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4134
Author: @ShobhitPatra
Created: 8/21/2025
Status: Merged
Merged: 8/22/2025
Merged by: @himself65

Base: canaryHead: feat/figma-provider


📝 Commits (2)

  • 31b6310 feat: add figma provider
  • a514a39 Merge branch 'canary' into feat/figma-provider

📊 Changes

4 files changed (+191 additions, -0 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+18 -0)
docs/content/docs/authentication/figma.mdx (+60 -0)
packages/better-auth/src/social-providers/figma.ts (+110 -0)
📝 packages/better-auth/src/social-providers/index.ts (+3 -0)

📄 Description

Description

This PR adds a new Figma provider

Changes

  • introduced new figma provider in /packages/better-auth/src/providers/figma.ts
  • Updated docs (added a new file: figma.mdx)

Notes

Testes in Next.js demo

Screenshot from 2025-08-22 01-28-46 Screenshot from 2025-08-22 01-29-30

Summary by cubic

Adds a Figma OAuth provider to enable sign-in with Figma, plus docs and a sidebar link.

  • New Features
    • New provider at social-providers/figma.ts with OAuth2 + PKCE.
    • Authorization: https://www.figma.com/oauth. Token/refresh: https://www.figma.com/api/oauth/token. User info: https://api.figma.com/v1/me.
    • Default scope file_read (can extend or disable).
    • Requires clientId, clientSecret, and clientKey. Supports custom refreshAccessToken and mapProfileToUser.
    • Exported via socialProviders and barrel.
    • Docs: added Figma setup guide and “Figma” item in the auth sidebar.

🔄 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/4134 **Author:** [@ShobhitPatra](https://github.com/ShobhitPatra) **Created:** 8/21/2025 **Status:** ✅ Merged **Merged:** 8/22/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/figma-provider` --- ### 📝 Commits (2) - [`31b6310`](https://github.com/better-auth/better-auth/commit/31b6310378639aa962593189734fc01908ed7660) feat: add figma provider - [`a514a39`](https://github.com/better-auth/better-auth/commit/a514a391608c78b70670fe45951cb92bd67bffeb) Merge branch 'canary' into feat/figma-provider ### 📊 Changes **4 files changed** (+191 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+18 -0) ➕ `docs/content/docs/authentication/figma.mdx` (+60 -0) ➕ `packages/better-auth/src/social-providers/figma.ts` (+110 -0) 📝 `packages/better-auth/src/social-providers/index.ts` (+3 -0) </details> ### 📄 Description ## Description This PR adds a new Figma provider ## Changes - introduced new figma provider in /packages/better-auth/src/providers/figma.ts - Updated docs (added a new file: figma.mdx) ## Notes Testes in Next.js demo <img width="1889" height="971" alt="Screenshot from 2025-08-22 01-28-46" src="https://github.com/user-attachments/assets/d3264610-3d75-4e26-b5b1-32326d5b80df" /> <img width="1889" height="971" alt="Screenshot from 2025-08-22 01-29-30" src="https://github.com/user-attachments/assets/01dcfdb1-b64b-4d39-8ac4-5ad13a14e975" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a Figma OAuth provider to enable sign-in with Figma, plus docs and a sidebar link. - **New Features** - New provider at social-providers/figma.ts with OAuth2 + PKCE. - Authorization: https://www.figma.com/oauth. Token/refresh: https://www.figma.com/api/oauth/token. User info: https://api.figma.com/v1/me. - Default scope file_read (can extend or disable). - Requires clientId, clientSecret, and clientKey. Supports custom refreshAccessToken and mapProfileToUser. - Exported via socialProviders and barrel. - Docs: added Figma setup guide and “Figma” item in the auth sidebar. <!-- End of auto-generated description by cubic. --> --- <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-04-13 08:57:01 -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#13456