Probable bug

AccessTokenStorage::delete should delete the token, not the scope associated with the token
This commit is contained in:
Vlad 2015-01-15 14:20:54 +01:00
parent ea6edf572a
commit d43391564c

View File

@ -86,7 +86,7 @@ class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface
*/
public function delete(AccessTokenEntity $token)
{
Capsule::table('oauth_access_token_scopes')
Capsule::table('oauth_access_tokens')
->where('access_token', $token->getId())
->delete();
}