JWTAuthenticator

@objc(ZDKJWTAuthenticator)
public protocol JWTAuthenticator : NSObjectProtocol
  • This function is called on behalf of ChatSDK every-time a new JWT token is required to authenticate your user. Implement this function to generate the JWT token that Zendesk Chat can understand. Call completion with the successful JWT response or the error that might occur.

    Declaration

    Swift

    func getToken(_ completion: @escaping (String?, Error?) -> Void)

    Parameters

    completion

    The completion is declared as follows: (JWT Token, Error)