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
Timo Hocker 79ac44cb52
All checks were successful
continuous-integration/drone/push Build is passing
fix
2020-07-19 15:26:08 +02:00

594 B

@sapphirecode/auth-client-helper

version: 1.1.x

client helper to authenticate on servers using the auth-server-helper

Installation

npm:

npm i --save @sapphirecode/auth-client-helper

yarn:

yarn add @sapphirecode/auth-client-helper

Usage

const client = require('@sapphirecode/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');

License

MIT © Timo Hocker timo@scode.ovh