Skip to content

Commit

Permalink
PR's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Feb 23, 2024
1 parent 118486e commit 19e2651
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions client/src/main/com/sinch/sdk/SinchClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import com.sinch.sdk.models.NumbersContext;
import com.sinch.sdk.models.SMSRegion;
import com.sinch.sdk.models.SmsContext;
import com.sinch.sdk.models.UnifiedCredentials;
import com.sinch.sdk.models.VerificationContext;
import com.sinch.sdk.models.VoiceContext;
import com.sinch.sdk.models.VoiceRegion;
Expand Down Expand Up @@ -89,13 +88,9 @@ public SinchClient(Configuration configuration) {
versionProperties = handlePropertiesFile(VERSION_PROPERTIES_FILE_NAME);
LOGGER.fine(
String.format(
"%s (%s) started with projectId '%s'",
"%s (%s) started",
versionProperties.getProperty(PROJECT_NAME_KEY),
versionProperties.getProperty(PROJECT_VERSION_KEY),
this.configuration
.getUnifiedCredentials()
.map(UnifiedCredentials::getProjectId)
.orElse("<undefined>")));
versionProperties.getProperty(PROJECT_VERSION_KEY)));
}

private void handleDefaultNumbersSettings(
Expand All @@ -116,7 +111,7 @@ private void handleDefaultSmsSettings(

SMSRegion smsRegion = configuration.getSmsContext().map(SmsContext::getSmsRegion).orElse(null);

// service plan ID activated: use dedicate server
// service plan ID activated: use dedicated server
String serverKey =
configuration
.getSmsServicePlanCredentials()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public BearerAuthManager(String token) {
}

public String getSchema() {
return SCHEMA_KEYWORD_BASIC;
return SCHEMA_KEYWORD_BEARER;
}

@Override
Expand Down

0 comments on commit 19e2651

Please sign in to comment.