zibri
    Preparing search index...

    Metadata for the @Auth.hasRole decorator.

    type HasRoleMetadata = {
        allowedRoles: string[];
        allowedStrategies?: AuthStrategies;
    }
    Index

    Properties

    allowedRoles: string[]

    The allowed roles that the use can have to access the endpoint.

    allowedStrategies?: AuthStrategies

    The strategies that are allowed for checking whether or not the user has one of the specified roles.

    If not set, this allows any strategy.