Skip to content

Commit

Permalink
Change /access-token deviceId header name to Hub-Device-ID
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Feb 19, 2025
1 parent 19f4721 commit afc9586
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private Interceptor httpLoggingInterceptor(Context context) {
public String getVaultKeyJwe(UnverifiedHubVaultConfig unverifiedHubVaultConfig, String accessToken) throws BackendException {
var request = new Request.Builder().get() //
.header("Authorization", "Bearer " + accessToken) //
.header("deviceId", getHubDeviceCryptor().getDeviceId()) //
.header("Hub-Device-ID", getHubDeviceCryptor().getDeviceId()) //
.url(unverifiedHubVaultConfig.getApiBaseUrl() + "vaults/" + unverifiedHubVaultConfig.vaultId() + "/access-token") //
.build();
try (var response = getHttpClient().newCall(request).execute()) {
Expand Down

0 comments on commit afc9586

Please sign in to comment.