BoxlangLicenseRefresh

Refreshes an existing BoxLang license token. This function uses the stored refresh token to obtain a new access token from the licensing server, extending the validity of the license without requiring manual re-activation.

Method Signature

BoxlangLicenseRefresh()

Arguments

No arguments. This function uses the stored refresh token from the active license.

Return Value

Returns a STRUCT with the following keys:

  • success (BOOLEAN) - Whether the refresh was successful

  • message (STRING) - Status message or error description

  • isValidLicense (BOOLEAN) - Whether the license is now valid

  • isTrialMode (BOOLEAN) - Whether the system is in trial mode

  • expirationDate (STRING) - New license expiration date

  • licenseType (STRING) - Type of license: BoxLang+ or BoxLang++

Examples

Template Syntax

Script Syntax

Scheduled Refresh Example

Combined License Management Example

Last updated

Was this helpful?