UNPKG

@casual-simulation/aux-vm-browser

Version:

A set of utilities required to securely run an AUX in a web browser.

28 lines 1.28 kB
import type { LoginUIStatus } from '@casual-simulation/aux-vm/auth'; import type { AuthHelperInterface } from '@casual-simulation/aux-vm/managers'; import type { Observable } from 'rxjs'; export declare class AuthHelper { private _primary; private _loginUIStatus; private _auths; private _useCustomUI; private _requirePrivoLogin; private _factory; private _onEndpointDiscovered; get endpoints(): Map<string, AuthHelperInterface>; get onEndpointDiscovered(): Observable<{ endpoint: string; helper: AuthHelperInterface; }>; get primaryAuthOrigin(): string; constructor(primaryAuthOrigin: string, primaryRecordsOrigin: string, factory?: (primaryAuthOrigin: string, primaryRecordsOrigin: string, sessionKey?: string, connectionKey?: string) => AuthHelperInterface, requirePrivoLogin?: boolean, primarySessionKey?: string, primaryConnectionKey?: string); get primary(): AuthHelperInterface; get loginUIStatus(): Observable<LoginUIStatus & { endpoint: string; }>; getOrCreateEndpoint(endpoint: string): AuthHelperInterface; getEndpoint(endpoint: string): AuthHelperInterface; private _createEndpoint; setUseCustomUI(useCustomUI: boolean): void; } //# sourceMappingURL=AuthHelper.d.ts.map