AsWebAuthenticationSession Error 3

Hi,
I'm using AsWebAuthenticationSession to log into a server using Oauth 2.0 and it works the first time, but then if I start the app again it returns the error:
"The operation couldn't be completed.(com.apple.AuthenticationServices.AuthorizationError error 3)
that I see in the documentation is "presentation context invalid" but I don't see any explanation or way to avoid it.

Also, I don't understand how the error can sometimes happen and sometimes not.

It is also curious that the application is not listed in Settings.

Thanks
Maria
AsWebAuthenticationSession Error 3
 
 
Q