TokenAuth
Upgather SDK / TokenAuth
Class: TokenAuth
Provides a token-based authentication strategy.
Remarks
This class implements the AuthStrategy interface and applies a token to an HTTP request for authentication purposes.
Implements
Constructors
new TokenAuth()
new TokenAuth(
token):TokenAuth
Creates an instance of TokenAuth.
Parameters
token
string
The authentication token.
Returns
Methods
authenticate()
authenticate(
request):void
Applies the token to the HTTP request.
Parameters
request
The HTTP request to authenticate.
Returns
void