API Docs for: 0.0.4
Show:

TokenAuthentication Class

Constructor

TokenAuthentication

(
  • field
  • token
  • [path]
)

Parameters:

  • field String

    The field that names the token

  • token String

    The value of the token to pass for authentication

  • [path] String optional

    Indicates if the field is in the header, body, or query. Header by default.

Item Index

Methods

Methods

authorize

(
  • request
)
RequestOptions

Additionally guarantees the passed object exists.

Parameters:

  • request RequestOptions

Returns:

RequestOptions:

The passed object with authorization information added.