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

connect-unified-login-system

v1.1.1

Published

A NPM package for connecting any website with Unified Login System developed by Vishnu G for User Authentication purposes

Downloads

4

Readme

Connect Unified Login System

connect-unified-login-system is an NPM package that helps websites seamlessly integrate with the Unified Login System for user authentication purposes. By using this package, developers can enable secure, efficient, and user-friendly authentication for their applications.

Features

  • Simple integration with the Unified Login System.
  • Facilitates secure authentication using unique public keys.
  • Streamlined communication with the Unified Login System's API.
  • Supports JWT token-based authentication for backend validation.

Installation

Install the package via npm:

npm install connect-unified-login-system

Usage

Import the package and use it in your code to connect to the Unified Login System.

Example:

import { connectToUnifiedLoginSystem } from 'connect-unified-login-system';

const handleUnifiedLoginSystem = async () => {
    const publicKey = "xx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; // Replace with your own public key
    
    try {
        const response = await connectToUnifiedLoginSystem({ publicKey });
        if (response.isError) {
            console.error("Error from Unified Login System:", response.msg);
        } else {
            console.log("User Data:", response);
            // Send authToken to your backend for validation
        }
    } catch (error) {
        console.error("Error connecting to Unified Login System:", error);
    }
};

handleUnifiedLoginSystem();

API

connectToUnifiedLoginSystem({ publicKey, isProd })

Parameters

  • publicKey (string, required): Your unique public key provided by the Unified Login System. It is used to authenticate your application.
  • isProd (boolean, optional): If you want to return response to your Production URL provide true.

Returns

A Promise that resolves to an object containing user data or an error message.

Example Successful Response

{
    "name": "John Doe",
    "emailId": "[email protected]",
    "isError": false,
    "authToken": "ey..." // JWT token to pass to your backend for validation
}

Example Error Response

{
    "isError": true,
    "msg": "Popup was blocked. Please allow popups for this site."
}

How It Works

  1. The package opens a popup window where the user can log in to the Unified Login System.
  2. On successful login and granting permission, the system sends user data (name, email) and an authToken back to your website via the popup.
  3. You can send the authToken to your backend for validation using the Unified Login System's third-party token authentication API.
  4. If the user closes the popup or denies permission, you will receive an error response.

Getting Started

  1. Sign up and register your website on the Unified Login System.
  2. Obtain your unique public key.
  3. Use this package to integrate Unified Login System into your application.

Requirements

  • Node.js version 12 or above.
  • A valid public key provided by the Unified Login System.

Support

For any questions or issues, please contact Unified Login System Support or open an issue on this repository.

License

This package is licensed under the Apache-2.0 License. See the LICENSE file for more details.