I'm using the TwilioConversationsClient
on iOS. How do I generate a new token once my existing token has expired?
These delegate methods get called after the token expires.
- (void)conversationsClientTokenWillExpire:(TwilioConversationsClient *)client
{
}
- (void)conversationsClientTokenExpired:(TwilioConversationsClient *)client
{
}
I know I'm supposed to call this method to update the token for the client, but I don't understand how to generate a new token for an existing conversation using the iOS SDK.
[client updateToken:@"TOKEN" completion:^(TCHResult * _Nonnull result) {
}];