mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 18:01:32 +03:00
d0bb1cc849
Now we can do ({accessKey, expiresIn}) => {...} in JavaScript.
16 lines
237 B
Plaintext
16 lines
237 B
Plaintext
/- *gcp
|
|
|%
|
|
++ token-to-json
|
|
|= =token
|
|
^- json
|
|
=, enjs:format
|
|
%+ frond %gcp-token
|
|
%: pairs
|
|
[%'accessKey' s+access-key.token]
|
|
:- %'expiresIn'
|
|
%- numb
|
|
(div (mul 1.000 expires-in.token) ~s1)
|
|
~
|
|
==
|
|
--
|