zeriontech / Web3Swift

Ethereum Web3 library implementation for Swift
https://web3swift.io
Apache License 2.0
107 stars 32 forks source link

How to add Basic Auth? #241

Open DwCleb opened 4 years ago

DwCleb commented 4 years ago

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

rockfridrich commented 4 years ago

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