• 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.

    Type Parameters

    • T

    Parameters

    • _req: T

    Returns asserts _req is AuthdReq<T>

Generated using TypeDoc