Subscription State
What productAccess contains
productAccess containsChecking access in code
tiun.on('userChange', (data) => {
if (data.isAuthenticated) {
const hasPro = data.user.productAccess.includes('p-live-pro');
const hasLight = data.user.productAccess.includes('p-live-light');
}
});UserInfo fields
UserInfo fieldsField
Type
Role
Last updated
Was this helpful?