cometchat-uid-1
, cometchat-uid-2
, cometchat-uid-3
, cometchat-uid-4
and cometchat-uid-5
.login()
method.
We recommend you call the CometChat login
method once your user logs into your app. The login()
method needs to be called only once.
Parameters | Description |
---|---|
UID | The UID of the user that you would like to login |
authKey | CometChat Auth Key |
User
object on Promise
resolved.
login()
method.Parameter | Description |
---|---|
authToken | Auth Token of the user you would like to login |
User
object on the Promise
resolved.
logout()
method to log out the user from CometChat. We suggest you call this method once your user has been successfully logged out from your app.