@design-sdk/figma-auth-store
v0.0.53
Published
Authentication credential management for figma on nodejs
Downloads
138
Maintainers
Readme
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>')