I have followed the tutorial till chapter 19 page 308 .
Build and run IOS app .
When I input user name ,password and tabbed login it fails .
After I go through the code in Auth.swift and LoginTableViewController.swift , There are not any wrong , it’s same as tutorial . Also checked the response in Rested. It response “OK” as below.
Appreciated if you could advise.
Response from API in Rested App
and set Authorization (user:admin, password: password) .
It response status code "200 OK "as below.
Accept-Encoding: gzip, deflate
Authorization: Basic YWRtaW46cGFzc3dvcmQ=
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Fri, 27 Jul 2018 19:46:25 GMT