UNPKG

@etherna/sdk-js

Version:

Etherna SDKs for operations on the network

19 lines 708 B
import type { BeeClient } from "."; import type { AuthenticationOptions } from ".."; export declare class Auth { private instance; constructor(instance: BeeClient); get token(): string | null; get tokenExpiration(): Date | null; get isAuthenticated(): boolean; /** * Authenticate with the Bee node * * @param username Bee node admin username (by default empty) * @param password Bee node admin password */ authenticate(username: string, password: string, options?: AuthenticationOptions): Promise<string>; refreshToken(token: string, options?: AuthenticationOptions): Promise<string | null>; private saveToken; } //# sourceMappingURL=auth.d.ts.map