mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-02-15 23:07:46 +05:30
25 lines
542 B
PHP
25 lines
542 B
PHP
<?php
|
|
/**
|
|
* @author Alex Bilbie <hello@alexbilbie.com>
|
|
* @copyright Copyright (c) Alex Bilbie
|
|
* @license http://mit-license.org/
|
|
*
|
|
* @link https://github.com/thephpleague/oauth2-server
|
|
*/
|
|
|
|
namespace League\OAuth2\Server\Entities;
|
|
|
|
use League\OAuth2\Server\CryptKey;
|
|
|
|
interface AccessTokenEntityInterface extends TokenInterface
|
|
{
|
|
/**
|
|
* Generate a JWT from the access token
|
|
*
|
|
* @param CryptKey $privateKey
|
|
*
|
|
* @return string
|
|
*/
|
|
public function convertToJWT(CryptKey $privateKey);
|
|
}
|