Is ASAuthenticationSession unavailable in Playground?

I tried to use ASAuthenticationSession in a playground, but it seems that it will fail once it starts.


In the GIF below, each time I click the button, the playground will start the authentication session, but the session will immediately stop.



Is this because the ASAuthenticationSession cannot be used in Playgrounds?

Replies

I just found the GIF was not uploaded. Here is a link: https://imgur.com/a/GPydGzC

Is this because the

ASAuthenticationSession
cannot be used in Playgrounds?

I don’t know but it seems like a reasonable theory. What happens if you put the same code into a trivial iOS app (just create a new one from the iOS > Single View Application template).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"