Module

services/entitlement

Entitlement Service allows you to check if an user have the necessary privilegies to watch a specific content.

This template relies on the mock server to check if an user (locally stored) is entitled. Developers using this template must implement the contentId validation as it is very specific.

Adapt it to follow your application business logic.

Methods

# async inner checkEntitlement(options) → {Boolean}

Entitlement Service

Parameters:
Name Type Description
options Object

Options

username String

Username to match the user

contentId String

Content to be validated

Is entitle

Boolean