eulith-web3js
Version:
Official Eulith Typescript client library
13 lines (12 loc) • 514 B
TypeScript
import { EulithAuthKeyPair } from "./wasm_types/eulith_auth";
export declare module Auth {
interface Token {
readonly token: string;
}
function fromCredentials(username: string, password: string, otp: string, serverUrl: string, expire_token_in_seconds?: bigint): Promise<Token>;
/**
* Instantiate a valid Auth object from a user token
*/
function fromToken(token: string): Token;
function generateKeyPair(username: string, password: string): Promise<EulithAuthKeyPair>;
}