0.4.2 • Published 8 months ago

@plusauth/web v0.4.2

Weekly downloads
8
License
MIT
Repository
github
Last release
8 months ago

@plusauth/web

PlusAuth helper utility intended to use in browsers.

Table of Contents

  1. Installation
  2. Usage
  3. 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

0.4.1

8 months ago

0.4.0

8 months ago

0.4.2

8 months ago

0.3.0

2 years ago

0.3.1

2 years ago

0.3.0-beta.3

2 years ago

0.3.0-beta.2

3 years ago

0.3.0-beta.1

3 years ago

0.3.0-beta.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago

0.0.4

4 years ago