@dapplets/dapplet-extension
Version:
The Bridge to the Augmented Web.
24 lines (23 loc) • 721 B
TypeScript
export declare class LoginSession {
sessionId: string;
moduleName: string;
authMethod: string;
walletType: string;
expiresAt: string;
createdAt: string;
loginConfirmationId?: string;
logoutHandler?: (ls: any) => void;
private get _network();
private get _chain();
private get _isExpired();
constructor(serializedSession: any);
isValid(): Promise<boolean>;
logout(): Promise<void>;
wallet(): Promise<any>;
contract(address: string, options: any): Promise<any>;
getItem(key: string): Promise<any>;
setItem(key: string, value: any): Promise<void>;
removeItem(key: string): Promise<void>;
clear(): Promise<void>;
private _getWalletObject;
}