This repository has been archived on 2021-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
auth-client-helper/README.md
2020-03-06 08:29:01 +01:00

388 B

Auth Client Helper

a module to make logging in to servers using the auth-server-helper easier

Usage

const client = require('@scode/auth-client-helper');

// if using in the browser, will send a request to the current host
const session_id = client.login('user','passw');

// specify a host manually
const session_id = client.login('user','passw','https://example.com');