diff --git a/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/LoginViewController.swift b/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/LoginViewController.swift index 2ff55d6..c121f19 100644 --- a/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/LoginViewController.swift +++ b/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/LoginViewController.swift @@ -65,7 +65,7 @@ class LoginViewController: UITableViewController { if let customer = customer, let token = token { self.clear() - self.delegate?.authenticationDidSucceedForCustomer(customer, withToken: token) + self.delegate?.authenticationDidSucceedForCustomer(customer, withToken: token.accessToken) } else { self.delegate?.authenticationDidFailWithError(error) } diff --git a/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/OrdersViewController.swift b/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/OrdersViewController.swift index 953fd4d..e63d68e 100644 --- a/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/OrdersViewController.swift +++ b/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/OrdersViewController.swift @@ -52,7 +52,7 @@ class OrdersViewController: UIViewController { } private func loadOrders() { - BUYClient.sharedClient.getOrdersForCustomerWithID(String(self.customer.identifier)) { (orders, error) in + BUYClient.sharedClient.getOrdersForCustomerCallback { (orders, error) in if let orders = orders { self.orders = orders self.tableView.reloadData() diff --git a/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/SignupViewController.swift b/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/SignupViewController.swift index ee0eee2..d318e9a 100644 --- a/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/SignupViewController.swift +++ b/Mobile Buy SDK Sample Apps/Customers App - Swift/Sample App Customers/SignupViewController.swift @@ -73,7 +73,7 @@ class SignupViewController: UITableViewController { if let customer = customer, let token = token { self.clear() - self.delegate?.authenticationDidSucceedForCustomer(customer, withToken: token) + self.delegate?.authenticationDidSucceedForCustomer(customer, withToken: token.accessToken) } else { self.delegate?.authenticationDidFailWithError(error) }