def auth_user(self, network, http_request_fn=None, epoch=None):
        """
        RPC call to authenticate the user on the hw device, for using with the network provided.

        Parameters
        ----------
        network : str
            The name of the network intended for use - eg. 'mainnet', 'liquid', 'testnet' etc.
            This is verified against the networks allowed on the hardware.

        http_request_fn : function, optional
            Optional http-request function to pass http requests to the Jade pinserver.
            Default behaviour is to use the '_http_request()' function which defers to the
            'requests' module.
            If the 'reqests' module is not available, no default http-request function is created,
            and one must be supplied here.

        epoch : int, optional
            Current epoch value, in seconds.  Defaults to int(time.time()) value.

        Returns
        -------
        bool
            True is returned immediately if the hw is already unlocked for use on the given network.
            True if the PIN is entered and verified with the remote blind pinserver.
            False if the PIN entered was incorrect.
        """
        params = {'network': network, 'epoch': epoch if epoch is not None else int(time.time())}
        return self._jadeRpc('auth_user', params,
                             http_request_fn=http_request_fn,
                             long_timeout=True)

        RPC call to authenticate the user on the hw device, for using with the network provided.

        Parameters
        ----------
        network : str
            The name of the network intended for use - eg. 'mainnet', 'liquid', 'testnet' etc.
            This is verified against the networks allowed on the hardware.

        http_request_fn : function, optional
            Optional http-request function to pass http requests to the Jade pinserver.
            Default behaviour is to use the '_http_request()' function which defers to the
            'requests' module.
            If the 'reqests' module is not available, no default http-request function is created,
            and one must be supplied here.

        epoch : int, optional
            Current epoch value, in seconds.  Defaults to int(time.time()) value.

        Returns
        -------
        bool
            True is returned immediately if the hw is already unlocked for use on the given network.
            True if the PIN is entered and verified with the remote blind pinserver.
            False if the PIN entered was incorrect.
        
electrum/plugins/jade/jadepy/jade.py