gcp: mark for tokens, token-to-json

This commit is contained in:
J 2021-02-24 19:30:49 +00:00
parent 328159da67
commit 713954a8bb
2 changed files with 25 additions and 0 deletions

12
pkg/arvo/lib/gcp.hoon Normal file
View File

@ -0,0 +1,12 @@
/- *gcp
|%
++ token-to-json
|= =token
^- json
=, enjs:format
%+ frond %gcp-token
%: pairs
access+s+access.token
expiry+(time expiry.token)
==
--

View File

@ -0,0 +1,13 @@
/+ *gcp
|_ tok=token
++ grad %noun
++ grow
|%
++ noun tok
++ json (token-to-json tok)
--
++ grab
|%
++ noun token
--
--