@sapphirecode/auth-client-helperdeprecated

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

Usage no npm install needed!

<script type="module">
  import sapphirecodeAuthClientHelper from 'https://cdn.skypack.dev/@sapphirecode/auth-client-helper';
</script>

README

@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