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. |
Methods
asHeader()
Constructs an object containing the header representation of this token.
Returns:
An object with a single attribute, 'Authorization'.