Expose the latest access token
- Last UpdatedApr 09, 2025
- 1 minute read
By using the scripts GetAccessToken and GetSecureAccessToken, the CONNECT access token can be exposed to InTouch and can be used by controls and widgets for Single Sign-On in connected experience at runtime.
You can use the GetAccessToken script function to return the latest token value and you can use the GetSecureAccessToken script function to return the latest token value in a secure or encrypted way. As the access tokens are time bound and the values keep changing periodically, this script function helps you to get the latest access token value.
In the Script Function Browser, you can see the built-in scripts GetAccessToken and GetSecureAccessToken. It will log the value of the access token is in the logger.
