mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-08 21:14:00 +05:30
Probable bug
AccessTokenStorage::delete should delete the token, not the scope associated with the token
This commit is contained in:
parent
ea6edf572a
commit
d43391564c
@ -86,7 +86,7 @@ class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface
|
|||||||
*/
|
*/
|
||||||
public function delete(AccessTokenEntity $token)
|
public function delete(AccessTokenEntity $token)
|
||||||
{
|
{
|
||||||
Capsule::table('oauth_access_token_scopes')
|
Capsule::table('oauth_access_tokens')
|
||||||
->where('access_token', $token->getId())
|
->where('access_token', $token->getId())
|
||||||
->delete();
|
->delete();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user