Change the block_for_auth API so that an argument can be passed