Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthService

Hierarchy

  • AuthService

Index

Constructors

constructor

Properties

_apiLoggedInCheckRoute

_apiLoggedInCheckRoute: string

_apiLoginRoute

_apiLoginRoute: string

_apiLogoutRoute

_apiLogoutRoute: string

_apiResetpasswordRoute

_apiResetpasswordRoute: string

_apiSendEmailResetPasswordRoute

_apiSendEmailResetPasswordRoute: string

_defaultLoggedInPage

_defaultLoggedInPage: string

_forgotPasswordPage

_forgotPasswordPage: Component

_httpService

_httpService: HTTPService

_loginPage

_loginPage: Component

_resetPasswordPage

_resetPasswordPage: Component

_routerService

_routerService: RouterService

_setPasswordPage

_setPasswordPage: Component

_storageService

_storageService: StorageService

_storeService

_storeService: StoreService

Accessors

apiLoggedInCheckRoute

  • get apiLoggedInCheckRoute(): string
  • set apiLoggedInCheckRoute(route: string): any

apiLoginRoute

  • get apiLoginRoute(): string
  • set apiLoginRoute(route: string): any

apiLogoutRoute

  • get apiLogoutRoute(): string
  • set apiLogoutRoute(route: string): any

apiResetpasswordRoute

  • get apiResetpasswordRoute(): string
  • set apiResetpasswordRoute(route: string): any

apiSendEmailResetPasswordRoute

  • get apiSendEmailResetPasswordRoute(): string
  • set apiSendEmailResetPasswordRoute(route: string): any

defaultLoggedInPageName

  • get defaultLoggedInPageName(): string
  • set defaultLoggedInPageName(pageName: string): any

forgotPasswordPage

  • get forgotPasswordPage(): Component
  • set forgotPasswordPage(page: Component): any

isAdmin

  • get isAdmin(): boolean

isLoggedin

  • get isLoggedin(): boolean

loggedInUser

  • get loggedInUser(): {}

loginPage

  • get loginPage(): Component
  • set loginPage(page: Component): any

resetPasswordPage

  • get resetPasswordPage(): Component
  • set resetPasswordPage(page: Component): any

responseErrorMiddleware

routeMiddleware

setPasswordPage

  • get setPasswordPage(): Component
  • set setPasswordPage(page: Component): any

Methods

getLoggedInUser

  • getLoggedInUser(): void
  • Sends a request to the server to get the logged in user

    Returns void

goToForgotPasswordPage

  • goToForgotPasswordPage(): void

goToLoginPage

  • goToLoginPage(): void

goToResetPasswordPage

  • goToResetPasswordPage(): void

goToSetPasswordPage

  • goToSetPasswordPage(): void

goToStandardLoggedInPage

  • goToStandardLoggedInPage(): void

login

  • login(credentials: Credentials): Promise<AxiosResponse>
  • Login to the app

    Parameters

    • credentials: Credentials

      the credentials to login with

    Returns Promise<AxiosResponse>

logout

  • logout(): Promise<AxiosResponse>

resetPassword

sendEmailResetPassword

  • sendEmailResetPassword(email: string): Promise<AxiosResponse>
  • Parameters

    • email: string

    Returns Promise<AxiosResponse>

setRoutes

  • setRoutes(): void

Generated using TypeDoc