ASWebAuthenticationSession and error code 1

We're using this (on a mac) to do 3rd party authentication. The completion handler is getting

Authentication session got error: [The operation couldn’t be completed. (com.apple.AuthenticationServices.WebAuthenticationSession error 1.)], in domain: [com.apple.AuthenticationServices.WebAuthenticationSession]

That seems to be generated if the auth window is closed. However... it's not being closed, so we end up spawning a second one to do it, and this one seems to work.

Answered by Systems Engineer in 790808022

This should only happen if the user cancels out of the request. If you're seeing it in other cases, please let us know through Feedback Assistant, with logs and ideally a screen recording so we can take a look!

This should only happen if the user cancels out of the request. If you're seeing it in other cases, please let us know through Feedback Assistant, with logs and ideally a screen recording so we can take a look!

Ok, I've created FB13968785 and attached system logs, a screen recording, and an app log. (The coworker did not run sysdiagnose.)

ASWebAuthenticationSession and error code 1
 
 
Q