mirror of
https://github.com/status-im/status-go.git
synced 2025-02-07 04:13:56 +00:00
fix_: token auth
This commit is contained in:
parent
304bb71802
commit
29847c9501
@ -303,7 +303,7 @@ func (c *Client) getEthClients(network *params.Network) []ethclient.RPSLimitedEt
|
||||
authEncoded := base64.StdEncoding.EncodeToString([]byte(provider.AuthLogin + ":" + provider.AuthPassword))
|
||||
headers.Set("Authorization", "Basic "+authEncoded)
|
||||
case params.TokenAuth:
|
||||
headers.Set("Authorization", "Bearer "+provider.AuthToken)
|
||||
provider.URL = provider.URL + provider.AuthToken
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user