zello-auth

Integrates Zello SDK authentication with the EnforcementMAPS AuthContext lifecycle in React Native.

Updated May 20, 2026
One-click install
npx skills add https://github.com/TechCorp25/kingdom --skill zello-auth-techcorp25
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: zello-auth
Source: https://github.com/TechCorp25/kingdom/tree/main/.claude/skills/use-zello/zello-auth
Command: npx skills add https://github.com/TechCorp25/kingdom --skill zello-auth-techcorp25

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @zelloptt/react-native-zello-sdk, expo-secure-store.

What problem does it solve? Connecting a Zello Work push-to-talk SDK to an existing app authentication flow is error-prone: developers must decide when to connect and disconnect the SDK, how to derive Zello usernames from app identities, and where to store network credentials. This Skill provides the exact integration pattern for wiring Zello authentication into the EnforcementMAPS AuthContext lifecycle. ## Core Features & Use Cases - Reactive Auth Lifecycle: Derives Zello connection state from AuthContext token changes, so login triggers Zello.connect() and logout triggers Zello.disconnect() with no separate Zello login screen. - ZelloProvider Component: Supplies a ready-to-adapt React provider that mounts inside AuthProvider and manages connection state with a ref guard. - Identity Mapping & Credential Rules: Defines a deterministic officer-number-to-Zello-username strategy and a storage matrix separating build-time env credentials from the app JWT in expo-secure-store. - Use Case: An officer taps Login in the EnforcementMAPS app; the ZelloProvider detects the new token and automatically connects to the Zello Work network as officer_629, then disconnects cleanly on logout. ## Quick Start Ask the AI to wire Zello SDK authentication into the AuthContext lifecycle by creating a ZelloProvider that connects on login and disconnects on logout.

Frequently Asked Questions about zello-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect Zello SDK authentication to my React Native app login?▼

Create a ZelloProvider that reads the token from your existing AuthContext and calls Zello.connect() when a token appears and Zello.disconnect() when it is cleared. Mount the provider inside AuthProvider so it can access auth state reactively.

How do I map app user identities to Zello usernames?▼

Derive Zello usernames deterministically from existing identifiers, such as prefixing the officer number (officer_629). Officers must be pre-provisioned in the Zello Work admin console or via the provisioning API before they can connect.

Does Zello Work use the same credentials as my app JWT?▼

No. Zello uses network credentials (an issuer and credential key) supplied as build-time environment variables, entirely separate from the app's JWT. The app JWT stays in expo-secure-store; Zello passwords should never be stored alongside it.

Where should Zello network credentials be stored in an Expo app?▼

Store the Zello network issuer and credential key as build-time environment variables in eas.json, exposed via EXPO_PUBLIC_ prefixed env vars. The Zello session token itself is managed internally by the SDK after connect().

Why does Zello stay connected after the user logs out?▼

This happens when the disconnect logic is not tied to auth state. Track connection with a ref and call Zello.disconnect() in the effect that observes the token becoming null, ensuring the Zello session ends on logout.