Skip to content

Figma OAuth Kit

Latest
Compare
Choose a tag to compare
@softmarshmallow softmarshmallow released this 15 Jul 07:44
· 430 commits to main since this release
9126dea

Figma-OAuth (@design-sdk/Figma-OAuth)

Figma OAuth, ready to use.

Installation

yarn add @design-sdk/figma-oauth

# or with npm
npm i @design-sdk/figma-oauth

Usage

import { urls, request } from "@design-sdk/figma-oauth";

const oauthTokenRequestUrl = urls.oauth_token_request_url({
  client_id,
  client_secret,
  redirect_uri,
  code,
});

const oauthAuthenticationResult = request.authenticationoauth_token_request_url(
  {
    client_id,
    client_secret,
    redirect_uri,
    code,
  }
);