Skip to content

Releases: gridaco/figma-sdk

Figma OAuth Kit

15 Jul 07:44
9126dea
Compare
Choose a tag to compare

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,
  }
);