587 B
587 B
@sapphirecode/auth-client-helper
version: 0.0.0
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('@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');
License
MIT © Timo Hocker timo@scode.ovh