From 2a3ae641ab3222bd578ba9aa8cf2470671e3e07c Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 30 Apr 2013 15:38:48 +0100 Subject: [PATCH] Added getAccessToken, fixed validateRefreshToken docblock --- src/OAuth2/Storage/SessionInterface.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/OAuth2/Storage/SessionInterface.php b/src/OAuth2/Storage/SessionInterface.php index 5264e4a9..b9ca2118 100644 --- a/src/OAuth2/Storage/SessionInterface.php +++ b/src/OAuth2/Storage/SessionInterface.php @@ -112,10 +112,17 @@ interface SessionInterface /** * Validate a refresh token - * @param string $accessToken The access token + * @param string $refreshToken The access token * @return void */ - public function validateRefreshToken($accessToken); + public function validateRefreshToken($refreshToken); + + /** + * Get an access token by ID + * @param int $accessTokenId The access token ID + * @return array + */ + public function getAccessToken($accessTokenId); /** * Associate a scope with an access token