• Marks the parameter to be injected as the currently logged in user.

    Parameters

    • Optionalrequired: boolean

      If set to false, the injected user is allowed to be undefined.

    • OptionalallowedStrategies: AuthStrategies

      The allowed auth strategies to resolve the currently logged in user. If not provided, any strategy is allowed.

    Returns ParameterDecorator