Skip to content

Commit

Permalink
ready for test
Browse files Browse the repository at this point in the history
  • Loading branch information
София Корватовская committed Jan 15, 2025
1 parent 6d6b310 commit ea9dc45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/Diadoc/Api/auth/AuthenticateClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public AuthenticateClient(AuthManager authManager, DiadocHttpClient diadocHttpCl
this.diadocHttpClient = diadocHttpClient;
}

public byte[] authenticate(String sid) throws DiadocSdkException {
public void authenticate(String sid) throws DiadocSdkException {
try {
authManager.clearCredentials();
var request = RequestBuilder
Expand All @@ -46,7 +46,6 @@ public byte[] authenticate(String sid) throws DiadocSdkException {

var response = diadocHttpClient.performRequest(request);
authManager.setCredentials(new String(response, UTF_8));
return response;
} catch (URISyntaxException | IOException ex) {
throw new DiadocSdkException(ex);
}
Expand Down

0 comments on commit ea9dc45

Please sign in to comment.