šŸš€ Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@ubnt/unifi-credential-server

Package Overview
Dependencies
Maintainers
228
Versions
1444
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@ubnt/unifi-credential-server

Figma link: https://www.figma.com/design/TzTMQrLhOy2ryCQLP3GyRN/ORG-Manager?node-id=0-1&p=f&m=dev

latest
npmnpm
Version
1.10.1-dev.30
Version published
Weekly downloads
0
Maintainers
228
Weekly downloads
Ā 
Created
Source

UniFi Organization Manager

Figma link: https://www.figma.com/design/TzTMQrLhOy2ryCQLP3GyRN/ORG-Manager?node-id=0-1&p=f&m=dev

šŸ“š Documentation

For comprehensive documentation, see the llm-docs/ directory:

Prerequisites

  • Node.js: v20.19.5 (see .nvmrc)
  • pnpm: v9.x

Development Workflow

IMPORTANT: This project is developed as a library that integrates into the UniFi Portal. Standalone development commands like pnpm dev-cloud-prd, pnpm dev-cloud-stg, and pnpm dev are DEPRECATED.

Setup and Run

1. In This Repository (Org Manager)

# Install dependencies
pnpm install

# Start watch mode for automatic rebuilds
pnpm dev-lib

2. In UniFi Portal Repository

# Link org-mgr (one-time, or after unlinking)
pnpm link /path/to/unifi.hw.org-mgr

# Follow the UniFi Portal README.md to setup certificates (one-time setup)

# Start the dev server
pnpm dev-cloud

UniFi Portal's build config automatically detects the linked package and configures the build to resolve org-mgr's externals from Portal's node_modules.

Development Flow

Terminal 1 (Org Manager)      Terminal 2 (UniFi Portal)
ā”œā”€ pnpm dev-lib (watch)       ā”œā”€ pnpm dev-cloud
└─ Auto-rebuild on changes ──>└─ Triggers page reload

Note: Since org-mgr outputs a single bundled JS file, changes trigger a full page reload rather than true hot module replacement.

Unlinking

When done with local development:

# In UniFi Portal
pnpm unlink @ubnt/unifi-credential-server
pnpm install  # Restore from npm registry

Authentication Setup

The application requires SSO authentication when running in UniFi Portal.

  • Login to UniFi Portal:

  • Extract Cookie:

    • Open DevTools → Application → Cookies
    • Find UBIC_AUTH (production) or STG_UBIC_AUTH (staging)
    • Copy the cookie value
  • Add to Localhost:

    • Navigate to UniFi Portal's localhost URL
    • Open DevTools → Application → Cookies
    • Add the cookie with the copied value

Multi-Organization Support

If your account has multiple organizations:

  • Open browser console
  • Set the organization ID:
    localStorage.setItem('localStorageOrgId', 'your-org-id');
    
  • Refresh the page

Note: The organization ID must exist in your account's organization list.

Remote Access Debugging

Display API Requests in Network Tab

Enter in browser console and refresh:

setSwTrafficLoggerTTL(1000 * 60 * 60 * 24); // 24 hours

View API Logs in Console

If network logging doesn't work, use console logging:

openIdentityHubLog(24); // 24 hours

API responses will print in the browser console.

Additional Information

Static HTML Development

For static HTML page development, see Static HTML README

Comprehensive Documentation

For detailed information about architecture, coding standards, troubleshooting, and more:

Available Scripts

# Library development
pnpm dev-lib             # Watch mode for development
pnpm build-lib           # Production library build

# Application build
pnpm build               # Production build (cloud)
pnpm build-local         # Production build (local)
pnpm analyze             # Bundle analysis

# Code quality
pnpm eslint --fix        # Fix linting issues
pnpm prettier --write .  # Format code

Technology Stack

  • React: 18.3.1
  • TypeScript: 5.6.2
  • Node: v20.19.5 (see .nvmrc)
  • State Management: Redux + React Query
  • Styling: Emotion CSS-in-JS
  • Build: Webpack 5

For complete technology stack details, see Architecture Documentation

FAQs

Package last updated on 27 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts