• Factory for creating a guard

    Parameters

    • name: string

      The unique name/identifier for this guard

    • description: string

      The description of the guard

    • storage: GdprStorage = GdprStorage.Cookie

      Where the data will be stored

    • required: boolean = false

      Whether or not it is a required guard

    • enabled: null | boolean = null

      Whether or not it is currently enabled

    Returns GdprGuard