License information in Forge backend

hi,

you will find a lot of snippets in this thread:

And for custom UI resolver the only needed property is isActive=true.
So it will look like this:

    context: {
        accountId: string;
        localId: string;
        cloudId: string;
        // ...
        license?: {
                isActive: boolean;
        }
    };


...


    let isLicenseValid = context && context.license && context.license.isActive === true;