mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Added hasAccessToken query
This commit is contained in:
parent
54a7a5b893
commit
11995764ba
@ -39,6 +39,20 @@ interface OAuth2ServerDatabase
|
|||||||
string $authCode
|
string $authCode
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Has access token
|
||||||
|
*
|
||||||
|
* Check if an access token exists for a user (or an application)
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return bool|string Return FALSE is a token doesn't exist or return the
|
||||||
|
* access token as a string
|
||||||
|
*/
|
||||||
|
public function hasAccessToken(
|
||||||
|
string $typeId,
|
||||||
|
string $clientId
|
||||||
|
);
|
||||||
|
|
||||||
public function getAccessToken(int $sessionId);
|
public function getAccessToken(int $sessionId);
|
||||||
|
|
||||||
public function removeAuthCode(int $sessionId);
|
public function removeAuthCode(int $sessionId);
|
||||||
|
Loading…
Reference in New Issue
Block a user