Options
All
  • Public
  • Public/Protected
  • All
Menu

Options that can be defined on Auth constructor.

Hierarchy

  • AuthOptions

Index

Properties

Optional accessTokenDecoder

accessTokenDecoder: TokenDecoder | null

Access token decoder.

default

new DefaultTokenDecoder()

Optional clientInterceptors

clientInterceptors: boolean

Setup interceptors at initialization.

default

true

Optional excludes

excludes: Exclude[]

Exclude some requests and responses from interception.

Optional listeners

listeners: AuthListener[] | null

Listeners to add at construction.

Optional loadTokensFromStorage

loadTokensFromStorage: boolean | null

Automatically load Tokens from both TokenStorage at initialization.

default

true if both TokenStorage are synchronous, false if asynchronous.

Optional persistentTokenStorage

persistentTokenStorage: TokenStorage | TokenStorageAsync | null

Token storage used to load and store Tokens with persistence.

Stored Tokens should survive a browser restart.

default

new DefaultTokenStorage(localStorage)

Optional tokenStorage

tokenStorage: TokenStorage | TokenStorageAsync | null

Token storage used to load and store {Tokens} without any persistence.

Stored Tokens should not survive a browser restart.

default

new DefaultTokenStorage(sessionStorage)

Legend

  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter
  • Property
  • Class
  • Class with type parameter

Generated using TypeDoc