Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 464 Bytes
<?php
namespace Equip\Auth\Token;
use Psr\Http\Message\ServerRequestInterface;
interface ExtractorInterface
{
/**
* Attempts to extract an authentication token from a request.
*
* - If a token is present, it is returned.
* - If no token is present, null is returned.
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @return string|null
*/
public function getToken(ServerRequestInterface $request);
}