def expiring

bend-kit-oauth2@0.11.0.1 · oauth2.bend:220

import bend-kit-oauth2@0.11.0.1/oauth2.bend as Oauth2
import Base
import bend-kit-time@0.3.0.0/time.bend as Time

220# Does tok lapse within skew seconds of now? A token without expires_in never does.
221def expiring(tok: Token, now: Time.Instant, +skew: U32) -> Bool:
222  Token{a, k, r, s, e} = tok
223  expiring.at(e, now, skew)

Uses (5)

Used by (2)