diff --git a/pkg/arvo/ted/get-gcp-jwt.hoon b/pkg/arvo/ted/get-gcp-jwt.hoon index 51453c062..ac3bcc9bb 100644 --- a/pkg/arvo/ted/get-gcp-jwt.hoon +++ b/pkg/arvo/ted/get-gcp-jwt.hoon @@ -31,21 +31,22 @@ ;< =key:rsa bind:m read-private-key ;< kid=@t bind:m (read-setting %private-key-id) ;< aud=@t bind:m (read-setting %token-uri) -=/ sot=@t +=/ jot=@t %: make-jwt key kid iss 'https://www.googleapis.com/auth/cloud-platform' aud now.bowl == ;< p=[access-token=@t expires-at=@da] bind:m - (get-access-token sot aud now.bowl) + (get-access-token jot aud now.bowl) (pure:m !>(p)) :: ++ read-setting |= key=term =/ m (strand @t) ^- form:m ;< has=? bind:m - (scry:strandio ? /gx/settings-store/has-entry/gcp-store/[key]/noun) + %+ scry:strandio ? + /gx/settings-store/has-entry/gcp-store/[key]/noun ?. has (strand-fail:strandio %no-setting key ~) ;< =data:settings bind:m