Skip to content

Commit

Permalink
deserialize token options
Browse files Browse the repository at this point in the history
  • Loading branch information
battis committed Apr 24, 2024
1 parent ae5cc6e commit ea80607
Show file tree
Hide file tree
Showing 5 changed files with 856 additions and 23 deletions.
9 changes: 9 additions & 0 deletions .nova/Tasks/deploy example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"actions" : {
"run" : {
"enabled" : true,
"script" : "cd examples\/appengine-client\nsource .env\ngcloud app deploy --project=$PROJECT --quiet"
}
},
"openLogOnRun" : "start"
}
9 changes: 0 additions & 9 deletions .nova/Tasks/docs.json

This file was deleted.

26 changes: 13 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/appengine-client/src/GoogleSecretsToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ public function __construct(mixed $projectId)
public function getToken(): ?AccessTokenInterface
{
$result = $this->secrets->get(self::ACCESS_TOKEN);
$options = json_decode($result);
if ($result !== null) {
/** @psalm-suppress MixedArgument */
return new AccessToken($result);
return new AccessToken($options);
}
return null;
}
Expand Down
Loading

0 comments on commit ea80607

Please sign in to comment.