assertAuthdReq<T>(_req): asserts _req is AuthdReq<T>
A type-assertion function asserting that the given express request object is an AuthdReq object. You should be able
to use this at the top of any handler to easily throw an error if the request is not an AuthdReq. If this does not
throw an error, you can safely use the req.auth object to then authorize the client for the given request.
A type-assertion function asserting that the given express request object is an AuthdReq object. You should be able to use this at the top of any handler to easily throw an error if the request is not an AuthdReq. If this does not throw an error, you can safely use the
req.auth
object to then authorize the client for the given request.