Class: Token

Token(type, value)

A type representing an API authentication token.

Constructor

new Token(type, value)

Constructs a new token from its constituents.
Parameters:
Name Type Description
type TokenType The type of this token.
value string The value of this token.
Source:

Methods

asHeader()

Constructs an object containing the header representation of this token.
Source:
Returns:
An object with a single attribute, 'Authorization'.