In order to use Haiku Animator's Figma integration, a service must be running to perform OAuth2 token exchange. Read more about OAuth with Figma and the Figma HTTP API here: https://www.figma.com/developers/api#oauth2
This project is a minimal self-hosted HTTP server application written in Go that will perform the token exchange for you.
TLS_*
environment variables in step 4. name
and logo
can be whatever you want. The website URL
must be the public URL from step 0 along with the path /v0/integrations/figma/token, e.g. http://animatorfigmaauth.na:8080/v0/integrations/figma/token
haiku://oauth/figma
env
after copying .env.example
into .env
and filling in the relevant values. Once .env
exists, you can use this one-liner to build, load env, and run the server: go build && export $(grep -v '#.*' .env | xargs) && ./figma-auth
. You can test that your server is accessible via GET /v0/ping
, e.g. in your browser at http://animatorfigmaauth.na:8080/v0/ping . If the server is accessible, you should see the response pong
.HAIKU_API=http://animatorfigmaauth.na:8080/ FIGMA_CLIENT_ID=get_this_from_figma yarn go
(from root of https://github.com/HaikuTeam/animator)This code is dual-licensed under Apache 2.0 and MIT.