class TokenAuthenticator implements Authenticator

Methods

__construct(string $token, string $prefix = 'Bearer')

Create a token authenticator.

void
set(PendingRequest $pendingRequest)

Apply the authentication to the request.

Details

at line 16
__construct(string $token, string $prefix = 'Bearer')

Create a token authenticator.

Parameters

string $token
string $prefix

at line 26
void set(PendingRequest $pendingRequest)

Apply the authentication to the request.

Parameters

PendingRequest $pendingRequest

Return Value

void