authul
TypeScript icon, indicating that this package has built-in type declarations

0.0.21 • Public • Published

authul

Installation

  1. Place the bundled/sw.js in a directory accessable from your front-end application
  2. Initizlize Authul:
import {Authul} from 'authul'

const auth = new Authul({endpoint: "https://auth.example.com", clientId: "<your_client_id>", ...otherOptions })

await auth.init()
await auth.getTokens()
  1. Place call redirect once Authotization is completed.

In redirect.html

import {redirect} from 'authul'
redirect()

Readme

Keywords

none

Package Sidebar

Install

npm i authul

Weekly Downloads

0

Version

0.0.21

License

ISC

Unpacked Size

148 kB

Total Files

42

Last publish

Collaborators

  • tornadoalert