authenticate
fun SendbirdChat.authenticate(userId: String, authToken: String? = null, apiHost: String? = null, handler: AuthenticationResultHandler?)
If you want to use the interface provided by the FeedChannel only, we'd recommend to authenticate using this function instead of SendbirdChat.awaitConnect.
Since
4.17.0
Parameters
user Id
User ID to authenticate with. Refer to User.userId.
auth Token
Auth token. It should not be saved on the client side. Set null if not used.
api Host
Custom API Host. Internal use only.
fun SendbirdChat.authenticate(userId: String, authToken: String? = null, authTokenType: AuthTokenType = AuthTokenType.SESSION_TOKEN, apiHost: String? = null, handler: AuthenticationResultHandler?)
If you want to use the interface provided by the FeedChannel only, we'd recommend to authenticate using this function instead of SendbirdChat.awaitConnect.
Since
4.24.0
Parameters
user Id
User ID to authenticate with. Refer to User.userId.
auth Token
Auth token. It should not be saved on the client side. Set null if not used.
auth Token Type
Auth token type. It should be one of AuthTokenType.
api Host
Custom API Host. Internal use only.