public function renewSelf(array $body = [])
    {
        $body = OptionsResolver::resolve($body, ['increment']);
        $params = ['body' => json_encode($body)];
        return $this->client->post('/v1/auth/token/renew-self', $params);
    }
public function renewSelf(array $body = [])
    {
        $body = OptionsResolver::resolve($body, ['increment']);
        $params = ['body' => json_encode($body)];
        return $this->client->post('/v1/auth/token/renew-self', $params);
    }
public function renewSelf ( array $ body = [ ] ) { $ body = OptionsResolver :: resolve ( $ body , [ 'increment' ] ) ; $ params = [ 'body' => json_encode ( $ body ) ] ; return $ this -> client -> post ( '/v1/auth/token/renew-self' , $ params ) ; }
Renews a lease associated with the calling token.

This is used to prevent the expiration of a token, and the automatic revocation of it.

Token renewal is possible only if there is a lease associated with it.

@see    https://www.vaultproject.io/docs/auth/token.html
@param  array  $body
@return mixed
Renews a lease associated with the calling token .