def unwrap_token(wrapper)
      # If provided a secret, grab the token. This is really just to make the
      # API a bit nicer.
      if wrapper.is_a?(Secret)
        wrapper = wrapper.wrap_info.token
      end

      # Unwrap
      response = unwrap(wrapper)

      # If nothing was there, return nil
      if response.nil? || response.auth.nil?
        return nil
      end

      return response.auth.client_token
    rescue HTTPError => e
      raise
    end
def unwrap_token(wrapper)
      # If provided a secret, grab the token. This is really just to make the
      # API a bit nicer.
      if wrapper.is_a?(Secret)
        wrapper = wrapper.wrap_info.token
      end

      # Unwrap
      response = unwrap(wrapper)

      # If nothing was there, return nil
      if response.nil? || response.auth.nil?
        return nil
      end

      return response.auth.client_token
    rescue HTTPError => e
      raise
    end
Unwrap a token in a wrapped response given the temporary token.

 @example
   Vault.logical.unwrap("f363dba8-25a7-08c5-430c-00b2367124e6") #=> "0f0f40fd-06ce-4af1-61cb-cdc12796f42b"

 @param [String, Secret] wrapper
   the token to unwrap

 @return [String, nil]