@signageos/cli-common
v0.1.1
Published
Shared authentication and configuration utilities for signageOS CLI tools
Downloads
273
Keywords
Readme
@signageos/cli-common
Shared authentication and configuration utilities for signageOS CLI tools (@signageos/cli and @signageos/cli-firmware).
Features
- Auth0 Device Authorization Flow — interactive login via browser
- Token persistence — stores access/refresh tokens in
~/.sosrc(INI format) with profile support - Config loading — resolves API URLs, auto-refreshes expired tokens
- Shared types and errors — consistent interfaces across CLI tools
Usage
import {
requestDeviceCode,
pollForToken,
refreshAccessToken,
isTokenExpired,
loadConfig,
loadStoredTokens,
saveStoredTokens,
} from '@signageos/cli-common';Running locally and testing
If you want to run this repo locally refer to the wiki. It will teach you how to setup your environment and run everything via docker.
