@ellcrys/spell
Version:
The official JavaScript library for Ellcrys
28 lines (27 loc) • 680 B
TypeScript
import RPCClient from "../rpcclient";
import Namespace from "./namespace";
/**
* Auth accesses information about an Elld client
*
* @export
* @class Auth
*/
export default class Auth extends Namespace {
/**
* Creates an instance of Auth.
*
* @param {RPCClient} client
* @memberof Auth
*/
constructor(client: RPCClient);
/**
* Retrieve a session token from
* the node.
*
* @param {string} username The RPC username
* @param {string} password The RPC password
* @memberof Auth
* @returns {Promise<string>} The session token
*/
authenticate(username: string, password: string): Promise<string>;
}