npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-vizbee-homesso-receiver-sdk

v1.0.0

Published

A React Native wrapper for the Vizbee HomeSSO SDK that enables seamless single sign-on functionality between mobile and TV applications.

Readme

React Native Vizbee HomeSSO Receiver SDK

Overview

The React Native Vizbee HomeSSO Receiver SDK enables seamless sign-in synchronization between mobile devices and TV applications. This SDK specifically handles the TV-side implementation, allowing TVs to receive authentication states from mobile devices in the same network.

Installation

npm install react-native-vizbee-homesso-receiver-sdk
# or
yarn add react-native-vizbee-homesso-receiver-sdk

Basic Usage in Functional Component

1. Initialize the SDK

import { useVizbeeHomeSSOReceiver } from 'react-native-vizbee-homesso-receiver-sdk';

const MyComponent = () => {
  const { initialize } = useVizbeeHomeSSOReceiver();

  useEffect(() => {
    initialize({
      onGetSignInInfo: async () => {
        // Return current authentication state
        return [{
          signInType: "MVPD",
          isSignedIn: false,
          userLogin: ""
        }];
      },
      onStartSignIn: async (senderInfo) => {
        // Handle sign-in request from mobile device
        if (senderInfo.isSignedIn) {
          // Handle background sign-in
        } else {
          // Handle foreground sign-in
        }
      }
    });
  }, []);

  return <YourComponent />;
};

2. Implement Sign-in Status Updates

const { sendProgress, sendSuccess, sendFailure } = useVizbeeHomeSSOReceiver();

// Send progress update (e.g., when registration code is available)
sendProgress("MVPD", { regcode: "ABC123" });

// Send success notification
sendSuccess("MVPD", "[email protected]");

// Send failure notification
sendFailure("MVPD", "Error message", false, null);

Basic Usage in Class Component

1. Initialize the SDK

import {
  VizbeeHomeSSOReceiverManager,
  VizbeeHomeSSOCallbacks,
} from "react-native-vizbee-homesso-receiver-sdk";

class AuthManager {
  private homeSSOManager: VizbeeHomeSSOReceiverManager;

  constructor() {
    this.homeSSOManager = new VizbeeHomeSSOReceiverManager();
    this.initializeHomeSSO();
  }

  private initializeHomeSSO(): void {
    const callbacks: VizbeeHomeSSOCallbacks = {
      onGetSignInInfo: async () => {
        // Return current authentication state
        return [
          {
            signInType: "MVPD",
            isSignedIn: false,
            userLogin: "",
          },
        ];
      },
      onStartSignIn: async (senderInfo) => {
        // Handle sign-in request from mobile device
        if (senderInfo.isSignedIn) {
          // Handle background sign-in
          await this.handleBackgroundSignIn(senderInfo.signInType);
        } else {
          // Handle foreground sign-in
          this.handleForegroundSignIn(senderInfo.signInType);
        }
      },
    };

    this.homeSSOManager.initialize(callbacks);
  }
}

2. Implement Sign-in Status Updates

class AuthManager {
  // ... constructor and initialization ...

  private handleSignInProgress(signInType: string, regCode: string): void {
    // Send progress update when registration code is available
    this.homeSSOManager.sendProgress(signInType, { regcode: regCode });
  }

  private handleSignInSuccess(signInType: string, userId: string): void {
    // Send success notification
    this.homeSSOManager.sendSuccess(signInType, userId);
  }

  private handleSignInFailure(signInType: string, error: Error): void {
    // Send failure notification
    this.homeSSOManager.sendFailure(signInType, error.message, false, error);
  }
}

Sign-in Flows

Background Sign-in

When the mobile device is already signed in, the TV app can perform authentication in the background:

  • Request registration code
  • Start polling for authentication status
  • Send progress updates with registration code
  • Handle success/failure states

Foreground Sign-in

When the mobile device is not signed in, the TV app should show a sign-in UI:

  • Navigate to sign-in screen
  • Display registration code
  • Track sign-in progress
  • Handle user interactions and callbacks

API Reference

Hooks

useVizbeeHomeSSOReceiver()

Main hook providing core functionality:

  • initialize(adapter): Set up the SDK
  • sendProgress(signInType, customData): Send progress updates
  • sendSuccess(signInType, userId, customData): Report successful sign-in
  • sendFailure(signInType, reason, isCancelled, error, customData): Report sign-in failure

Types

interface VizbeeHomeSSOCallbacks {
  onGetSignInInfo: () => Promise<VizbeeSignInInfo[]>;
  onStartSignIn: (senderInfo: VizbeeSenderSignInInfo) => Promise<void>;
}

interface VizbeeSignInInfo {
  signInType: string;
  isSignedIn: boolean;
  userLogin?: string;
  userName?: string;
  userSubscriptionType?: string;
  userSubscriptionValue?: string;
  userSubscriptionRenewalType?: string;
  userAdditionalInfo?: Record<string, any>;
}

interface VizbeeSenderSignInInfo {
  signInType: string;
  isSignedIn: boolean;
  customData: Record<string, any>;
  senderInfo?: any;
}

Best Practices

  1. Initialize Early: Call initializeHomeSSO() as soon as your app is ready & after the Continuity SDK is initialized.

  2. Handle App State: Track app readiness and handle pending callbacks appropriately.

  3. Progress Updates: Keep the mobile device informed of sign-in progress:

    • Send registration codes when available
    • Report success/failure promptly
    • Include relevant custom data in updates
  4. Error Handling: Implement proper timeout and error handling for sign-in processes.

Support

For additional support or to report issues: