@design-sdk/figma-auth-store
TypeScript icon, indicating that this package has built-in type declarations

0.0.53 • Public • Published

Figma-Auth-Store (@design-sdk/figma-auth-store)

Figma Auth Store, Crendentials storage & management for nodejs

Installation

yarn add @design-sdk/figma-auth-store

# or with npm
npm i @design-sdk/figma-auth-store

Usage

import { getAccessToken, getAccessToken_safe, personal, oauth, FigmaAuthStore } "@design-sdk/figma-auth-store";

FigmaAuthStore.configure({
    prefix: "figma/" // optional, defaults to "figma/"
})


// this throws when token is not available.
const accessToken = getAccessToken()

// this returns null when token is not available.
const accessToken_safe = getAccessToken_safe()


// set token
personal.set('<your-personal-access-token>')
oauth.set('<token-retrieved-from-figma-oauth>')

Package Sidebar

Install

npm i @design-sdk/figma-auth-store

Weekly Downloads

6

Version

0.0.53

License

none

Unpacked Size

12.3 kB

Total Files

19

Last publish

Collaborators

  • softmarshmallow