Reads the security metadata a middleware function was branded with.
The middleware to inspect
The metadata, or undefined when the middleware carries none
undefined
const guarded = (route.definition.middleware ?? []).some( (fn) => securityMetadataOf(fn)?.authenticated === true,); Copy
const guarded = (route.definition.middleware ?? []).some( (fn) => securityMetadataOf(fn)?.authenticated === true,);
0.2.0
Reads the security metadata a middleware function was branded with.