Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Stormpath

Index

Constructors

constructor

Properties

config

Private currentDomain

currentDomain: CurrentDomain

http

http: Http

Private oauthHeaders

oauthHeaders: Headers

tokenStore

tokenStore: TokenStoreManager

user$

user$: Observable<Account | boolean>

userSource

userSource: ReplaySubject<Account | boolean>

Methods

Private accountTransformer

  • accountTransformer(json: any): Account

Private errorThrower

Private errorTranslator

  • errorTranslator(error: any): Observable<any>
  • Returns the JSON error from an HTTP response, or a generic error if the response is not a JSON error

    Parameters

    • error: any

    Returns Observable<any>

getAccount

  • getAccount(): Observable<Account | boolean>
  • Attempts to get the current user by making a request of the /me endpoint.

    Returns Observable<Account | boolean>

    An observable that will return an Account if the user is logged in, or false if the user is not logged in.

getRegistrationViewModel

  • getRegistrationViewModel(): any

getToken

Private jsonParser

  • jsonParser(res: Response): any

login

logout

  • logout(): void

register

  • register(form: Object): Observable<Account>
  • Attempts to register a new account by making a POST request to the /register endpoint.

    Parameters

    • form: Object

    Returns Observable<Account>

    An observable that will return an Account if the POST was successful.

resendVerificationEmail

resetPassword

sendPasswordResetEmail

verifyEmailVerificationToken

  • verifyEmailVerificationToken(sptoken: string): any

verifyPasswordResetToken

  • verifyPasswordResetToken(sptoken: string): any

Generated using TypeDoc