API Docs for: 0.2.1
Show:

AuthorizationMixin Class

A Mixin class for storage of credential/token uses with a HTTP Authorization request-header

The default solution is to use localStorage['AuthorizationHeader'] for the credential

Methods

ajaxPrefilter

()

When using the FetchMixin and using ajax instead of fetch, setup XHR beforeSend with Authorization Header

Properties

_storage

String private

Storage type localStorage or sessionStorage

authorizationCredential

String

Authentication credentials/token used with HTTP authentication

authorizationHeaderField

String

The name of the Authorization request-header field

authorizationHeaderStorageKey

String

The name key, stored locally, that references the Authorization request-header credential/token