Resources
Account Stats
The session.account.stats
array contains system-generated values you can use for managing resources.
Example codebase implementation
// pseudocode
if(session.account.stats.users === 10)
<button>Update Plan</button>
else
<button>Add User</button>
Available statistics
// session object
{
...
"account": {
"stats": {
"users": 5,
"children": 4,
"optional_features": 2
}
...
}
}
Property | Type | Description |
---|---|---|
users | integer | The count of account users. |
children | integer | The child accounts networked under the account. |
| integer | The count of optional features for which the account has subscribed. |