Skip to content

Commit

Permalink
IDE-2272: Fix refresh token files (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Sep 15, 2022
1 parent 3c5262a commit 324b577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CloudApi/CloudCredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getCloudAccessToken(): ?string {
}

if (getenv('ACLI_ACCESS_TOKEN_FILE')) {
return file_get_contents(getenv('ACLI_ACCESS_TOKEN_FILE'));
return trim(file_get_contents(getenv('ACLI_ACCESS_TOKEN_FILE')), "\"\n");
}

return NULL;
Expand All @@ -45,7 +45,7 @@ public function getCloudAccessTokenExpiry(): ?string {
}

if (getenv('ACLI_ACCESS_TOKEN_EXPIRY_FILE')) {
return file_get_contents(getenv('ACLI_ACCESS_TOKEN_EXPIRY_FILE'));
return trim(file_get_contents(getenv('ACLI_ACCESS_TOKEN_EXPIRY_FILE')), "\"\n");
}

return NULL;
Expand Down

0 comments on commit 324b577

Please sign in to comment.