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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@entrustcorp/idaas-auth-js

v0.2.1

Published

IDaaS Authentication SDK for SPA applications

Downloads

293

Readme

IDaaS Auth JS

Overview

IDaaS Auth JS is the official JavaScript/TypeScript SDK for Entrust Identity-as-a-Service. It wraps hosted OIDC flows, risk-based authentication (RBA) challenges, and “convenience” methods (password, OTP, passkey, soft token, etc.) in a client.

Key features

  • Standards-based OIDC authorization-code + PKCE with popup or redirect flows.
  • Risk-Based Authentication transaction management with challenge/submit/poll/cancel lifecycle.
  • Convenience authentication methods for passkeys (WebAuthn), password, OTP, soft token, magic link, face, smart credential, grid, KBA, and temporary access codes.

Create a Free Trial Account

Entrust Identity as a Service (IDaaS) is a cloud-based identity and access management (IAM) solution with multi-factor authentication (MFA), credential-based passwordless access, and single sign-on (SSO).

Get started with a free trial account today.

Configure Your IDaaS Application

  1. After logging in as an administrator, navigate to the applications page.
  2. Click the plus sign in the top left to create a new application.
  3. Scroll down and select Generic SPA Application.
  4. On the Setup page, check the Authorization Code grant type. This SDK supports only the authorization code flow with PKCE.
  5. If you intend to use refresh tokens, check the Refresh Token (OIDC) grant type. Failing to do so will cause errors if you attempt to use refresh tokens.
  6. Add all URIs that you may redirect to after a successful login or logout. Failing to do so will cause errors if you attempt to redirect to a different URI.
  7. Make any other changes necessary for your application, then submit your changes.

Make note of your application's Client ID and Issuer URL (typically https://{yourIdaasDomain}.region.trustedauth.com/api/oidc). These will be required to configure the SDK.

Content Security Policy (CSP)

The IDaaS Auth SDK will send API requests to your IDaaS tenant. You will need to ensure the Content Security Policy of your web application is updated to include your IDaaS tenant hostname as an allowed connection source. For more information regarding CSP, see the MDN Content Security Policy documentation.

The following must be set in your Content Security Policy for the SDK to work. Replace entrust.us.trustedauth.com with your IDaaS tenant hostname.

connect-src entrust.us.trustedauth.com


Installation

npm install @entrustcorp/idaas-auth-js

Optional dependency for face biometrics:

npm install onfido-sdk-ui

Quickstart

import { IdaasClient } from "@entrustcorp/idaas-auth-js";

const idaas = new IdaasClient({
  issuerUrl: "https://example.us.trustedauth.com/api/oidc",
  clientId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  storageType: "localstorage"
});

// Popup flow (auto stores tokens)
await idaas.oidc.login({ popup: true });

// Use tokens
const accessToken = await idaas.getAccessToken();

See the Quickstart guide for configuration options, redirect flows, error handling, and self-hosted examples.


Documentation

Guides

API Reference


License

See LICENSE for details.