This commit is contained in:
2025-01-28 22:01:30 +01:00
parent 454c12a5a9
commit bc95ef157d
4 changed files with 30 additions and 21 deletions

View File

@@ -34,6 +34,8 @@ namespace LaDOSE.REST
public void Connect(Uri url, string user, string password)
{
Client = new RestClient(url);
this.username = user;
this.password = password;
string token;
try
{
@@ -51,8 +53,7 @@ namespace LaDOSE.REST
options.Authenticator = new JwtAuthenticator(token);
});
this.username = user;
this.password = password;
}