Skip to content
The Auth.js project is now part of Better Auth.

Figma Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/figma

Environment Variables

.env.local
AUTH_FIGMA_ID
AUTH_FIGMA_SECRET

Configuration

@/auth.ts
import NextAuth from "next-auth"
import Figma from "next-auth/providers/figma"
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Figma],
})
⚠️

The URL must be accessed via the user’s browser and not an embedded webview inside your application. Webview access to the Figma OAuth flow is not supported and may stop working for some or all users without an API version update.

Auth.js © Better Auth Inc. - 2025