mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-23 14:22:55 +00:00
Updated version
This commit is contained in:
@@ -70,7 +70,8 @@ namespace CryptoExchange.Net.Authentication
|
||||
public virtual ApiCredentials Copy()
|
||||
{
|
||||
if (PrivateKey == null)
|
||||
return new ApiCredentials(Key!, Secret!);
|
||||
// Use .ToString() to create a copy of the SecureString
|
||||
return new ApiCredentials(Key!.ToString(), Secret!.ToString());
|
||||
else
|
||||
return new ApiCredentials(PrivateKey!.Copy());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user