Registry / auth-security / arco-cli-auth

arco-cli-auth

JSON →
library1.0.3jsnpmunverified

Auth module for Arco CLI, providing authentication functionality for Arco design system command-line tools. Version 1.0.3 is the current stable release with no known update cadence. It is a minimal package likely used internally within the Arco ecosystem, and not intended for general use. Differentiator: specific to Arco CLI workflows, not a general-purpose auth library.

npm install arco-cli-auth
INSTALL
IMPORT
SIG · ARCO-CLI-AUTH
A
arco-cli-auth
auth-securityjavascriptv1.0.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import auth from 'arco-cli-auth'
import { auth } from 'arco-cli-auth'
Default export only; named import causes undefined.
login
import { login } from 'arco-cli-auth'
const login = require('arco-cli-auth').login
ESM-only; CommonJS require may work but not guaranteed.
logout
import { logout } from 'arco-cli-auth'
import logout from 'arco-cli-auth'
Named export, not default.

Demonstrates how to authenticate and logout using arco-cli-auth, assuming OAuth2 flow with client ID and redirect URI.

import { login, logout } from 'arco-cli-auth'; async function main() { const token = await login({ clientId: 'my-app', redirectUri: 'http://localhost:3000/callback' }); console.log('Token:', token); // Use token for API calls await logout(token); } main().catch(console.error);
arco --version
Debug
Known issues
gotchaPackage is designed for internal Arco CLI use only. Public API may change without notice.
fix
Do not depend on this package directly outside of Arco CLI.
affects: All
deprecatedThe package has no recent updates; consider it unmaintained for external use.
fix
Use a standard authentication library like OAuth2 client.
affects: <=1.0.3
breakingVersion 1.0.0 changed from CommonJS to ESM-only. Requiring via require() may fail.
fix
Use import syntax or enable ESM in your project.
affects: >=1.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Using CommonJS require() on an ESM-only package.
fix
Change to import statement or set type: module in package.json.
TypeError: auth is not a function
Incorrect import syntax, likely using named import when only default export exists.
fix
Use `import auth from 'arco-cli-auth'` instead of `import { auth } from ...`.
Upgrade
Version history
1.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
28
OpenAI (training)
1
Resources
arco-cli-auth — npm install arco-cli-auth · libregistry