User Agent registration with external users management

In this case, User Agent is created using apiKey :
        var ua = UserAgent(UserAgentOptions(uri: .apzkey("[put api key here]")))
    
In order to start communicating with other users, User Agent has to register to the Apizee platform. ApiKey is used to isolate your project so you will be able to communicate with users that are registered with the same apiKey.
        ua.register(RegisterInformation(id: [Your user id])) { (error, session) in
            if let error = error {
                showError(error)
                return
            }
            guard let session = session else {
                showError("Session is nil")
                return
            }
            self.session = session
        }
    
Check documentation for a complete description of RegisterInformation possibilities