Argument | Description | Types / Required |
accessToken | The access token. | string
required |
The
registerAccessToken action registers an
access token, permitting access to the Action Invoker from external callers that use this access token. Registered access tokens are added to the list of permitted access tokens specified as part of an application's
logic settings. Multiple access tokens can be registered to a single application.
The action returns undefined.
The action throws an exception if any of its arguments are not specified in a valid form, or if the action is executed from an environment that is not trusted.
// register the access token
CS.registerAccessToken(accessToken := "b082da4b-6a3b-4069-aa07-0a2dd6f0b715");
<script>
// use the Action Invoker with the registered access token
const CS = new CSProActionInvoker("b082da4b-6a3b-4069-aa07-0a2dd6f0b715");
</script>