@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
22 lines • 866 B
TypeScript
/**
* ```js
* import { login } from '@amityco/ts-sdk-react-native/client/api'
* const success = await login({
* userId: 'XYZ123456789',
* })
* ```
*
* Connects an {@link Amity.Client} instance to ASC servers
*
* @param params the connect parameters
* @param params.userId the user ID for the current session
* @param params.displayName the user's displayName for the current session
* @param params.deviceId Manual override of the user's device id (for device management)
* @param params.authToken The authentication token - necessary when network option is set to secure
* @returns a success boolean if connected
*
* @category Client API
* @async
*/
export declare const login: (params: Amity.ConnectClientParams, sessionHandler: Amity.SessionHandler, config?: Amity.ConnectClientConfig) => Promise<boolean>;
//# sourceMappingURL=login.d.ts.map