Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpUserManager

Default implementation of IUserManager

export
class

HttpUserManager

Hierarchy

  • HttpUserManager

Implements

Index

Constructors

constructor

Properties

Private _isDisposed

_isDisposed: boolean = false

Private _isSignedIn

_isSignedIn: boolean = false

Private _onAuthStateChange

_onAuthStateChange: Subject<void> = new Subject<void>()

Private _username

_username: string = "Sign in..."

Private baseUrl

baseUrl: string

Accessors

isDisposed

  • get isDisposed(): boolean

isSignedIn

  • get isSignedIn(): boolean

onAuthStateChange

  • get onAuthStateChange(): Observable<void>

username

  • get username(): string

Methods

checkIsSignedIn

  • checkIsSignedIn(): Promise<boolean>

dispose

  • dispose(): void

Protected issueRequest

  • issueRequest(endpoint: string, method?: string, body?: URLSearchParams): Promise<Response>
  • Parameters

    • endpoint: string
    • Default value method: string = "GET"
    • Optional body: URLSearchParams

    Returns Promise<Response>

login

  • login(username: string, password: string): Promise<void>

logout

  • logout(): Promise<void>

Generated using TypeDoc