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.
Parameter | Description |
---|---|
UID | The UID of the user that you would like to login |
authKey | CometChat App Auth Key |
User
object.
login()
method.Parameter | Description |
---|---|
authToken | Auth Token of the user you would like to login |
User
object.
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.