public function revokeToken($token)
    {
        $revoked = false;
        $store = $this->getStore();
        $pool = $store->getTokens();
        if(!is_null($pool)){
            foreach($pool as $key => $savedToken){
                if($savedToken['token'] == $token){
                    unset($pool[$key]);
                    $revoked = true;
                    break;
                }
            }
        }
        $store->setTokens($pool);

        return $revoked;
    }
public function revokeToken($token)
    {
        $revoked = false;
        $store = $this->getStore();
        $pool = $store->getTokens();
        if(!is_null($pool)){
            foreach($pool as $key => $savedToken){
                if($savedToken['token'] == $token){
                    unset($pool[$key]);
                    $revoked = true;
                    break;
                }
            }
        }
        $store->setTokens($pool);

        return $revoked;
    }
public function revokeToken ( $ token ) { $ revoked = false ; $ store = $ this -> getStore ( ) ; $ pool = $ store -> getTokens ( ) ; if ( ! is_null ( $ pool ) ) { foreach ( $ pool as $ key => $ savedToken ) { if ( $ savedToken [ 'token' ] == $ token ) { unset ( $ pool [ $ key ] ) ; $ revoked = true ; break ; } } } $ store -> setTokens ( $ pool ) ; return $ revoked ; }
Revokes the given token
@return true if the revokation succeed (if the token was found)
Revokes the given token