Socket
Book a DemoInstallSign in
Socket

@plusauth/web

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plusauth/web

PlusAuth Web Util

0.4.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@plusauth/web

PlusAuth helper utility intended to use in browsers.

Table of Contents

  • Installation
  • Usage
  • Docs

Installation

From PlusAuth CDN (Make sure to check version):

<!-- Latest release -->
<script src="https://unpkg.com/@plusauth/web@0.3.1/dist/plusauth-web.umd.js"></script>

With npm:

$ npm install @plusauth/web

or with yarn

$ yarn add @plusauth/web

Usage

CDN Usage

The library will be exposed to global as plusauthweb

Initialize it like following:

const plusAuth = new plusauthweb.PlusAuthWeb('https://<YOUR_TENANT_ID>.plusauth.com')

// access auth methods
plusAuth.auth.signIn({ username: 'test', password: 'test' })

// access mfa methods
plusAuth.mfa.validateCode('CODE', plusauthweb.MFACodeType.SMS)

NPM Usage

import { PlusAuthWeb, MFACodeType } from '@plusauth/web'

const plusAuth = new PlusAuthWeb('https://<YOUR_TENANT_ID>.plusauth.com')

// access auth methods
plusAuth.auth.signIn({ username: 'test', password: 'test' })

// access mfa methods
plusAuth.mfa.validateCode('CODE', MFACodeType.SMS)

Docs

For API docs visit here

FAQs

Package last updated on 08 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.