Skip to content

Support Figma OAuth Bearer authentication#267

Open
phiilu wants to merge 1 commit intoRedMadRobot:masterfrom
phiilu:feat/oauth-bearer-auth
Open

Support Figma OAuth Bearer authentication#267
phiilu wants to merge 1 commit intoRedMadRobot:masterfrom
phiilu:feat/oauth-bearer-auth

Conversation

@phiilu
Copy link
Copy Markdown

@phiilu phiilu commented Mar 23, 2026

We want to sync Figma Tokens in CI. The PAT has a maximum validity for 90 days, therefore we used OAuth in Figma to mint access tokens in CI which can be used by figma-export to sync the tokens.

This PR adds FIGMA_OAUTH_TOKEN env var for OAuth 2.0 access tokens, which use the Authorization: Bearer header.
Falls back to FIGMA_PERSONAL_TOKEN with the X-Figma-Token header for backwards compatibility.

It introduces FigmaAuth enum with associated values to model the two authentication methods.

Add FIGMA_OAUTH_TOKEN env var for OAuth 2.0 access tokens, which use
the Authorization: Bearer header. Falls back to FIGMA_PERSONAL_TOKEN
with the X-Figma-Token header for backwards compatibility.

Introduces FigmaAuth enum with associated values to model the two
authentication methods.
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