for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Phisch\OAuth\Server\Token;
use Phisch\OAuth\Server\Entity\AccessTokenEntityInterface;
class BearerToken implements TokenTypeInterface
{
/**
* @param AccessTokenEntityInterface $accessToken
* @return string
*/
public function generate(AccessTokenEntityInterface $accessToken)
return $accessToken->getIdentifier();
}
public function getType()
return 'Bearer';