Skip to content

A browserless authentication and service management framework

Notifications You must be signed in to change notification settings

authless/authless-core

Repository files navigation

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);