def token_refresh

cswap-bend-cli@0.1.0.0 · store/ops.bend:123

import cswap-bend-cli@0.1.0.0/store/ops.bend as Ops
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/seq.bend as SSeq
import cswap-bend-cli@0.1.0.0/store/plan.bend as SPlan
import cswap-bend-cli@0.1.0.0/store/io.bend as SIo

123def token_refresh(+root: String, +token: String, +api_key: Bool, +email: String, +ts: String, +seq: Json.Json, +num: String) -> Act.of(String):
124  do ActM<String>:
125    token_files(root, token, api_key, email, num)
126    SIo.write_seq(root, SSeq.stamp(seq, ts))
127    token_logs(root, "Updated " ++ SPlan.kind_label(api_key) ++ " for account " ++ num ++ ": " ++ email, api_key, email, num)
128    return "Updated " ++ SPlan.kind_label(api_key) ++ " for Account " ++ num ++ " (" ++ email ++ " [personal])."

Uses (14)

Used by (1)