Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

414 B
Raw Blame
export const NATIVE_AUTH_HUB_OWNED = 'native_auth_hub_owned';

type NativeAuthOwnershipPayload = {
  error?: unknown;
  reauth_channel?: unknown;
};

export function isNativeAuthHubOwned(value: unknown): boolean {
  if (!value || typeof value !== 'object') return false;
  const payload = value as NativeAuthOwnershipPayload;
  return payload.error === NATIVE_AUTH_HUB_OWNED && payload.reauth_channel === 'hub';
}