hyperlocalise-web env vars. There is no client secret (public client).
Implementation lives in apps/hyperlocalise-web (/api/oauth/figma/*) and the plugin UI in apps/figma-plugin. End-user workflow is in Localize Figma.
Flow
- Designer connects from the Figma plugin (OAuth in production).
- The plugin opens
{ORIGIN}/api/oauth/figma/authorize(PKCE, scopefigma). - Hyperlocalise signs the user in with WorkOS if needed, then shows consent at
/en/connect/figma/oauthto pick a workspace Figma connection. - The plugin exchanges the authorization code at
{ORIGIN}/api/oauth/figma/tokenand storeshl_figma_at_*tokens. - The plugin calls
/api/integrations/figma/*with headerX-Hyperlocalise-Access-Token.
Figma / plugin redirect URIs
Replace{ORIGIN} with the public Hyperlocalise web origin (same as HYPERLOCALISE_PUBLIC_APP_URL, no trailing slash).
Production example (adjust host to your deployment):
https://www.hyperlocalise.com/api/oauth/figma/authorizehttps://www.hyperlocalise.com/api/oauth/figma/token
- Discovery:
{ORIGIN}/api/oauth/figma/.well-known/oauth-authorization-server - Revocation:
{ORIGIN}/api/oauth/figma/revoke
https://www.figma.com/apps/oauth/authorized when FIGMA_OAUTH_REDIRECT_URI is unset. Local development also allows http://localhost:3000/connect/figma/oauth/callback and figma://oauth/callback.
Verify metadata before saving Figma settings:
Environment variables
apps/hyperlocalise-web
Local
.env can omit FIGMA_OAUTH_CLIENT_ID; integration health reports figmaOauthConfigured: false until it is set.

