Interface IAuthenticationStore

interface IAuthenticationStore {
    currentOrganization: undefined | string;
    currentUser: undefined | IUser;
    defaultDeviceId: undefined | string;
    isShareToken: boolean;
    refreshToken: undefined | string;
    token: undefined | string;
    apiUrl: string;
    confirmForgotPassword(request): Promise<boolean>;
    forgotPassword(email): Promise<void>;
    getCurrentUser(): undefined | IUser;
    isAuthenticated(): boolean;
    listenForRefresh(): Promise<void>;
    login(email, password): Promise<IAuthentication>;
    login(email, password, options): Promise<AuthenticationResult>;
    loginToPeer(peerUrl, username, password): Promise<void>;
    loginWithGoogle(token): Promise<any>;
    loginWithToken(token, refreshToken?): Promise<void>;
    refresh(token): Promise<void>;
    respondToNewPasswordRequiredChallenge(request): Promise<any>;
    waitTilAuthenticated(): Promise<boolean>;
}

Properties

currentOrganization: undefined | string
currentUser: undefined | IUser
defaultDeviceId: undefined | string
isShareToken: boolean

Deprecated

Do not use directly. This will be removed in future versions of the API

refreshToken: undefined | string

Deprecated

Do not use directly. This will be removed in future versions of the API

token: undefined | string

Accessors

Methods

Generated using TypeDoc