PL
PlusAuth/plusauth-web
Authorization utility to be used in PlusAuth rendered views
@plusauth/web
PlusAuth helper utility intended to use in browsers.
Table of Contents
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/webor with yarn
$ yarn add @plusauth/webUsage
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
On this page
Languages
TypeScript80.4%JavaScript18.8%Shell0.8%
Contributors
MIT License
Created May 15, 2020
Updated February 14, 2023