Web3Swift icon indicating copy to clipboard operation
Web3Swift copied to clipboard

How to add Basic Auth?

Open DwCleb opened this issue 5 years ago • 1 comments

I need to add a Basic Auth in some endpoint in my request. How can I do this?

DwCleb avatar Aug 24 '20 15:08 DwCleb

Hey @DwCleb, You can implement own Network protocol (https://github.com/zeriontech/Web3Swift/blob/develop/Web3Swift/Network/Network.swift). Use this file (https://github.com/zeriontech/Web3Swift/blob/develop/Web3Swift/Network/EthNetwork.swift) as the example

rockfridrich avatar Aug 31 '20 19:08 rockfridrich