mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 19:22:22 +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)
|
|
~
|
|
==
|
|
--
|