I am trying to save the user name and password so users can use the Safari Auto Login for my app. Here is what I have:
SecAddSharedWebCredential(CFSTR("www.website.com"),
(__bridge CFStringRef)(usernameField.text),
(__bridge CFStringRef)(passwordField.text),
^(CFErrorRef error) {
NSLog(@"%@", error);
});
It works great on the simulator but on the device I get an error:
""www.website.com" failed to approve "uniquecode.com.website"
Any idea why it would work on one and not the other?
Thanks