GetSecureAccessToken() Function
- Last UpdatedJul 26, 2024
- 1 minute read
GetSecureAccessToken () provides secure authentication token, which will be accepted by controls like Trend Control, Alarm Client Control and other InTouch controls, to support Single Sign-On functionality.
Syntax
The syntax of the script function is as follows:
resultCode = GetSecureAccessToken();
Resultcode indicates the latest access token.
Example:
To get the secured token value renewed every time it expires, you can use the script as follows:
-
In the Symbol Script window, select Add Script.
-
Provide a name to the script.
-
Select the Display Script Function Browser icon.
-
In the Script Browser screen, under InTouch, select GetSecureAccessToken to insert the script function or you can manually type.
-
Select OK.

Return Value
The GetSecureAccessToken script function returns the access token with the a token value, if user is authenticated using CONNECT.
The GetSecureAccessToken script function returns an empty string, if user is not authenticated using CONNECT.