def expiry

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

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

131def expiry(now: Time.Instant, m: Maybe<&2, U32>) -> Maybe<&2, Time.Instant>:
132  match m:
133    case None{}:
134      None{}
135    case Some{n}:
136      Some{Time.Instant.add(now, Time.Duration.of_secs(Time.i64(n)))}

Uses (6)

Used by (1)