mirror of
https://github.com/urbit/shrub.git
synced 2025-01-02 17:43:32 +03:00
gcp: mark for tokens, token-to-json
This commit is contained in:
parent
328159da67
commit
713954a8bb
12
pkg/arvo/lib/gcp.hoon
Normal file
12
pkg/arvo/lib/gcp.hoon
Normal 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)
|
||||
==
|
||||
--
|
13
pkg/arvo/mar/gcp-token.hoon
Normal file
13
pkg/arvo/mar/gcp-token.hoon
Normal file
@ -0,0 +1,13 @@
|
||||
/+ *gcp
|
||||
|_ tok=token
|
||||
++ grad %noun
|
||||
++ grow
|
||||
|%
|
||||
++ noun tok
|
||||
++ json (token-to-json tok)
|
||||
--
|
||||
++ grab
|
||||
|%
|
||||
++ noun token
|
||||
--
|
||||
--
|
Loading…
Reference in New Issue
Block a user