From c1269a97d6753f1046420825d3ce33d8e1c19806 Mon Sep 17 00:00:00 2001 From: Dustin Wheeler Date: Thu, 29 May 2014 19:27:45 -0700 Subject: [PATCH] Adds create method to AuthCodeInterface. Relates to #160. --- src/Storage/AuthCodeInterface.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Storage/AuthCodeInterface.php b/src/Storage/AuthCodeInterface.php index 78dcc703..f8a358f9 100644 --- a/src/Storage/AuthCodeInterface.php +++ b/src/Storage/AuthCodeInterface.php @@ -26,6 +26,16 @@ interface AuthCodeInterface */ public function get($code); + /** + * Create an auth code. + * @param string $token The token ID + * @param integer $expireTime Token expire time + * @param integer $sessionId Session identifier + * + * @return void + */ + public function create($token, $expireTime, $sessionId); + /** * Get the scopes for an access token * @param \League\OAuth2\Server\Entity\AuthCodeEntity $token The auth code