authenticate Feed
suspend fun SendbirdChat.authenticateFeed(userId: String, authToken: String? = null, apiHost: String? = null): AuthUser
If you want to use the interface provided by the FeedChannel only, we'd recommend to authenticate using this function instead of SendbirdChat.connect.
Return
The AuthUser object of the current user and the socket connection state.
Since
4.15.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.authenticateFeed(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.connect.
Since
4.15.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.