@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
16 lines • 564 B
TypeScript
import { getBotToken } from '../api/getBotToken';
/**
* A util to set or refresh client token
* @param options get bot token options
* @param options.setAccessTokenCookie The authentication token - necessary when network option is set to secure
* @returns token & user info
*
* @category private
* @async
*/
export declare const setBotClientToken: (params: Parameters<typeof getBotToken>[0]) => Promise<{
accessToken: string;
users: Amity.RawUser[];
userType: "signed-in" | "visitor" | "bot";
}>;
//# sourceMappingURL=setBotClientToken.d.ts.map