Options
All
  • Public
  • Public/Protected
  • All
Menu

Token Manager of CouchDB session token.

The Token Manager performs basic auth with username and password to acquire session tokens.

Hierarchy

  • TokenManager
    • SessionTokenManager

Index

Constructors

constructor

Properties

Private options

Protected requiredOptions

requiredOptions: string[] = ...

Private tokenName

tokenName: string

Methods

Protected requestToken

  • requestToken(): Promise<any>

Private saveTokenInfo

  • saveTokenInfo(tokenResponse: any): void
  • From the response parse and save session token into field accessToken. Calculate expiration and refresh time from the received response and store them in fields expireTime and refreshTime.

    Parameters

    • tokenResponse: any

      Response object from session token request

    Returns void

setHeaders

  • setHeaders(headers: OutgoingHttpHeaders): void
  • Only base service specific headers are in use.

    Parameters

    • headers: OutgoingHttpHeaders

      the new set of headers as an object

    Returns void

Generated using TypeDoc