1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-07 16:06:15 +00:00

Set ApiCredentials in the client specific options to prevent unknown client credentials when using SetApiCredentials method on client

This commit is contained in:
Jkorf 2024-10-22 10:15:17 +02:00
parent 7a58902ab6
commit 1842f4fda0

View File

@ -88,6 +88,7 @@ namespace CryptoExchange.Net.Clients
/// <inheritdoc /> /// <inheritdoc />
public void SetApiCredentials<T>(T credentials) where T : ApiCredentials public void SetApiCredentials<T>(T credentials) where T : ApiCredentials
{ {
ApiOptions.ApiCredentials = credentials;
if (credentials != null) if (credentials != null)
AuthenticationProvider = CreateAuthenticationProvider(credentials.Copy()); AuthenticationProvider = CreateAuthenticationProvider(credentials.Copy());
} }