https://github.com/f9mac/authless
A browserless / puppeteer extension adding authentication management
https://github.com/f9mac/authless
Last synced: 14 days ago
JSON representation
A browserless / puppeteer extension adding authentication management
- Host: GitHub
- URL: https://github.com/f9mac/authless
- Owner: f9mac
- Created: 2019-07-24T14:12:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T22:01:02.000Z (over 3 years ago)
- Last Synced: 2025-02-25T03:41:59.657Z (over 1 year ago)
- Language: JavaScript
- Size: 380 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Authless • [](https://codeclimate.com/github/f9mac/authless/maintainability) [](https://codeclimate.com/github/f9mac/authless/test_coverage)
A browserless, "Chrome-as-a-service", extension adding advanced authentication management capabilities.
## 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
```javascript
const {
Authless,
Router,
Route,
DefaultService,
LinkedinService,
LinkedinSalesNavigatorService,
Account
} = require('authless');
// initate services
const defaultService = new DefaultService();
const linkedinService = new LinkedinService();
const linkedinSalesNavService = new LinkedinSalesNavigatorService();
// add accounts to services (or do it sometime later)
defaultService.add(new Account(config));
// initiate router with services
const authlessRouter = new Router([
...DefaultService.getRoutes(defaultService, Route),
...LinkedinService.getRoutes(linkedinService, Route),
...LinkedinSalesNavigatorService.getRoutes(linkedinSalesNavService, Route)
]);
// and finally, initiate authless
const authless = new Authless(authlessRouter);
```
## ToDo
- [ ] implement post .goto verification if authenticated or not