Skip to content

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.

Duration

CustomDecorator<string>