N
Nyxis
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

StateTonePrimary action
connectedsuccess(none — onDisconnect available)
expiredamberReconnect
needs-reauthamberReauthorise
nevermutedConnect
erroreddestructiveRetry

Compact variant

Pass compact to render an inline pill (icon + state label only). Pair with <SkillCard>’s title row for a compact summary.