@authless/core
TypeScript icon, indicating that this package has built-in type declarations

3.11.5 • Public • Published

Authless • Maintainability Test Coverage

A browserless, "Chrome-as-a-service", framework for advanced authentication management. Featuring a plugin-system through services that allow customization for various web services.

Install

yarn add authless
# - or -
npm install authless

ENV

  • CHROME_USER_DATA_DIR: If set user data profiles are stored in that directory, otherwise chrome default dir is used. Example: /path/to/dir/. Default: undefined

Usage

const {
  Authless,
  Account,
  Router,
  Route,
  Service,
  ServiceDefault
} = require('@authless/core');

// initate services
const defaultService = new DefaultService();

// add accounts to services (or do it sometime later)
defaultService.add(new Account(config));

// initiate router with services
const router = new Router([
  ...DefaultService.getRoutes(defaultService, Route),
]);

// and finally, initiate authless
const authless = new Authless(router);

Readme

Keywords

none

Package Sidebar

Install

npm i @authless/core

Weekly Downloads

0

Version

3.11.5

License

ISC

Unpacked Size

233 kB

Total Files

84

Last publish

Collaborators

  • michaelhirn