mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-05 19:43:56 +05:30
Removed unused functions
This commit is contained in:
parent
437833cd32
commit
e2350a65b1
@ -84,22 +84,6 @@ class Session implements SessionInterface
|
|||||||
return $db->lastInsertId();
|
return $db->lastInsertId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove an associated access token from a session
|
|
||||||
* @param int $sessionId The session ID
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function removeAccessToken($sessionId)
|
|
||||||
{
|
|
||||||
$db = \ezcDbInstance::get();
|
|
||||||
|
|
||||||
$stmt = $db->prepare('INSERT INTO oauth_session_refresh_tokens (session_access_token_id, refresh_token) VALUE
|
|
||||||
(:accessTokenId, :refreshToken)');
|
|
||||||
$stmt->bindValue(':accessTokenId', $accessTokenId);
|
|
||||||
$stmt->bindValue(':refreshToken', $params['refresh_token']);
|
|
||||||
$stmt->execute();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Associate a refresh token with a session
|
* Associate a refresh token with a session
|
||||||
* @param int $accessTokenId The access token ID
|
* @param int $accessTokenId The access token ID
|
||||||
|
@ -48,13 +48,6 @@ interface SessionInterface
|
|||||||
*/
|
*/
|
||||||
public function associateAccessToken($sessionId, $accessToken, $expireTime);
|
public function associateAccessToken($sessionId, $accessToken, $expireTime);
|
||||||
|
|
||||||
/**
|
|
||||||
* Remove an associated access token from a session
|
|
||||||
* @param int $sessionId The session ID
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function removeAccessToken($sessionId);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Associate a refresh token with a session
|
* Associate a refresh token with a session
|
||||||
* @param int $accessTokenId The access token ID
|
* @param int $accessTokenId The access token ID
|
||||||
|
Loading…
Reference in New Issue
Block a user