@objc(ZDKJWTAuthenticator) public protocol JWTAuthenticator : NSObjectProtocol
This function is called on behalf of ChatSDK every-time a new
JWTtoken is required to authenticate your user. Implement this function to generate the
JWTtoken that Zendesk Chat can understand. Call
completionwith the successful
JWTresponse or the error that might occur.
func getToken(_ completion: @escaping (String?, Error?) -> Void)
The completion is declared as follows: (