Skills
SkillAuthStatus
Auth lifecycle card with primary action — connect / reconnect / reauthorise / retry.
Preview
Connected
OAuth token valid. Skill is ready to invoke.
Token expired
OAuth token has expired. Reconnect to refresh.
Reauthorisation required
Required scopes changed. Reauthorise to continue.
Not connected
Skill has not been authorised yet.
Connection error
Last connection attempt failed. Retry or contact the publisher.
Installation
pnpm add nyxis-ui
Usage
import { SkillAuthStatus } from 'nyxis-ui';
<SkillAuthStatus
state={skill.authState}
onConnect={() => oauth.connect(skill.id)}
onDisconnect={() => oauth.disconnect(skill.id)}
/>;
States
| State | Tone | Primary action |
|---|---|---|
connected | success | (none — onDisconnect available) |
expired | amber | Reconnect |
needs-reauth | amber | Reauthorise |
never | muted | Connect |
errored | destructive | Retry |
Compact variant
Pass compact to render an inline pill (icon + state label only). Pair with <SkillCard>’s title row for a compact summary.