def expired
import cswap-bend-cli@0.1.0.0/usage/cred.bend as Credimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
92# is_oauth_token_expired: now + 5 min >= expiresAt (ms). Missing or
93# non-numeric is not expired.
94def expired(+o: Json.Json, +now: U32) -> Bool:
95 exp.num(Maybe.default(&2, Json.Json, Json.get("expiresAt", o), Json.JNull{}), now)