We have found the solution.
You need to setup app links, set usePopup to false, and open the appleid logon page in Safari instead of the WkWebview of your app.
Then after logging on or signing up, the redirect url will be openend in Safari. It will ask the user if you want to open the url in the app. When you do this, the id_token will be passed to the app and you will be able to logon or signup the user.
For a more user friendly experience we are going to implement it a little bit differently. The redirect, complete with signup or logon, will be handled by safari. The user will be shown a page with readable status information and offered a one time handoff link to go back to the wkwebview of the app.
Topic:
App & System Services
SubTopic:
Core OS
Tags: