Interface UserApi

interface UserApi {
    getToken(): Promise<undefined | string>;
    getUser(): Promise<UserItem>;
    login(email: string, password: string): Promise<undefined | UserItem>;
    logout(): Promise<void>;
    passwordReset(token: string, new_password: string): any;
    register(email: string, password: string, userName: string): Promise<void>;
    requestPasswordReset(email: string, reset_url?: string): any;
    updateUser(user: UserItem): Promise<UserItem>;
}

Methods

  • Parameters

    • token: string
    • new_password: string

    Returns any

  • Parameters

    • email: string
    • password: string
    • userName: string

    Returns Promise<void>

  • Parameters

    • email: string
    • Optionalreset_url: string

    Returns any

MMNEPVFCICPMFPCPTTAAATR