def fresh.cc
import bend-kit-oauth2@0.11.0.1/oauth2.bend as Oauth2import Base
import bend-kit-hairpin@0.13.0.1/hairpin.bend as Hairpin
import bend-kit-time@0.3.0.0/time.bend as Time
245# tok, or a new client-credentials token when it lapses within skew seconds (§4.4.3: no refresh token).
246def fresh.cc(h: Hairpin.Client, cfg: Config, +scope: String, +tok: Token, +skew: U32) -> IO(Hairpin.Client & Result<&1, &1, Err, Token>):
247 do IO<Hairpin.Client & Result<&1, &1, Err, Token>>:
248 now : Time.Instant <- Time.now()
249 fresh.cc.go(expiring(tok, now, skew), h, cfg, scope, tok)
Uses (14)
Used by (0)
No other definition uses this definition.