1
0
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:
Jkorf
2022-02-24 12:55:59 +01:00
parent 0c6e74911d
commit 63d4af8543
5 changed files with 14 additions and 8 deletions
@@ -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());
}