@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
24 lines • 959 B
TypeScript
/**
* Retrieves a pair of {@link Amity.Tokens} necessary for connection
*
* @param params get visitor token param
* @param params.deviceId The user's device Id (can be manually set for native users)
* @param params.authSignature The authenitcation signature - necessary when network option is set to secure
* @param params.authSignatureExpiresAt Expire time of the authenitcation signature
* @param options get bot token options
* @param options.setAccessTokenCookie The authentication token - necessary when network option is set to secure
* @return The accessToken for the given userId
*
*
* @category Client API
* @hidden
*/
export declare const getVisitorToken: ({ params, options, }: {
params: Amity.ConnectClientAsVisitorParams & {
deviceId: string;
};
options?: {
setAccessTokenCookie?: boolean | undefined;
} | undefined;
}) => Promise<Amity.SessionResponse>;
//# sourceMappingURL=getVisitorToken.d.ts.map