Skip to main content

getThreadToken

client.application.getThreadToken(): Promise<ThreadToken>

Retrieves the current thread token.

Returns the authentication token associated with the current thread, used for securing inter-process communication.

Parameters

No parameters.

Returns

Promise<ThreadToken> — A promise that resolves to the ThreadToken object

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.application.getThreadToken();
console.log(result);