When I try to use the new WebAuthenticationSession (introduced in iOS 16.4), it throws an error about not having a presentation context. WAS doesn't have a way to specify the context, so it must be automatic and something is messing up the automatic detection.
One thing I noticed is that my call to webAuthSession.authenticate()
ends up happening off the main thread because of how the enclosing Task gets scheduled (in spite of my adding @MainActor
in various places to try to get it back on track). Before I go too far down that rabbit hole, can anyone confirm that the authenticate()
call will throw that presentation context error if called off the main thread?