RequireFreshAuth
RequireFreshAuth(
maxAge?):CustomDecorator<string>
Requires a recent credential proof (auth.requireFreshAuth, freshAuthAge
in the core’s config). maxAge can only make it stricter: a route asking
for 1 minute refuses a 2 minute old proof even when freshAuthAge is 10.
Parameters
Section titled “Parameters”maxAge?
Section titled “maxAge?”Duration
Returns
Section titled “Returns”CustomDecorator<string>