JWTAuthenticator
@objc(ZDKJWTAuthenticator)
public protocol JWTAuthenticator : NSObjectProtocol
Protocol that an object that handles authentication should conform to. Called by the ChatSDK everytime authentication is required.
-
This function is called on behalf of ChatSDK every-time a new
JWTtoken is required to authenticate your user. Implement this function to generate theJWTtoken that Zendesk Chat can understand. Callcompletionwith the successfulJWTresponse or the error that might occur.Declaration
Swift
func getToken(_ completion: @escaping (String?, Error?) -> Void)Parameters
completionThe completion is declared as follows: (
JWT Token,Error)
Install in Dash
JWTAuthenticator Protocol Reference