The response returned by Monzo's token endpoint.
Summary
Functions
Returns whether the token is expired as of now, with margin_seconds
subtracted from the expiry to account for clock skew and in-flight requests.
Returns the wall-clock time this token expires at.
Types
Functions
@spec expired?(t(), non_neg_integer()) :: boolean()
Returns whether the token is expired as of now, with margin_seconds
subtracted from the expiry to account for clock skew and in-flight requests.
@spec expires_at(t()) :: DateTime.t() | nil
Returns the wall-clock time this token expires at.