mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 18:19:47 +05:30
Fixing hasSession
This commit is contained in:
parent
e860ca0d0a
commit
854ea81ed8
@ -153,22 +153,22 @@ interface Database
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the access token for a given session owner and client combination
|
* Return the session ID for a given session owner and client combination
|
||||||
*
|
*
|
||||||
* Database query:
|
* Database query:
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* SELECT access_token FROM oauth_sessions WHERE client_id = $clientId
|
* SELECT id FROM oauth_sessions WHERE client_id = $clientId
|
||||||
* AND owner_type = $type AND owner_id = $typeId
|
* AND owner_type = $type AND owner_id = $typeId
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $type The session owner's type
|
* @param string $type The session owner's type
|
||||||
* @param string $typeId The session owner's ID
|
* @param string $typeId The session owner's ID
|
||||||
* @param string $clientId The client ID
|
* @param string $clientId The client ID
|
||||||
* @return string|null Return the access token as a string if
|
* @return string|null Return the session ID as an integer if
|
||||||
* found otherwise returns null
|
* found otherwise returns false
|
||||||
*/
|
*/
|
||||||
public function hasAccessToken(
|
public function hasSession(
|
||||||
$type,
|
$type,
|
||||||
$typeId,
|
$typeId,
|
||||||
$clientId
|
$clientId
|
||||||
|
Loading…
Reference in New Issue
Block a user