mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 10:18:55 +05:30
Added missing details (return values on failure) to methods of SessionInterface
This commit is contained in:
parent
3a6468897f
commit
18e1bb33de
@ -137,8 +137,8 @@ interface SessionInterface
|
|||||||
* )
|
* )
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param [type] $accessToken [description]
|
* @param string $accessToken The access token
|
||||||
* @return [type] [description]
|
* @return bool|array Returns false if the validation fails, array on success
|
||||||
*/
|
*/
|
||||||
public function validateAccessToken($accessToken);
|
public function validateAccessToken($accessToken);
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ interface SessionInterface
|
|||||||
* Validate a refresh token
|
* Validate a refresh token
|
||||||
* @param string $refreshToken The refresh token
|
* @param string $refreshToken The refresh token
|
||||||
* @param string $clientId The client ID
|
* @param string $clientId The client ID
|
||||||
* @return int The session ID
|
* @return bool|int The session ID, or false on failure
|
||||||
*/
|
*/
|
||||||
public function validateRefreshToken($refreshToken, $clientId);
|
public function validateRefreshToken($refreshToken, $clientId);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user