ASWebAuthenticationSession failing to access cookies only in Simulator

We are using an ASWebAuthenticationSession to authenticate using an already logged in session in Safari.
This works fine on real hardware.

In Simulator from iOS13.5, the callback URL is always missing the session ID which indicates that ASWebAuthenticationSession couldn't access the cookies.

We are not using session cookies.
As documented here: https://developer.apple.com/documentation/authenticationservices/authenticating_a_user_through_a_web_service

Does anyone have any suggestion how to debug this and figure out if the problem is on our side or iOS side?
Can you reproduce this then with the affected simulator still booted run xcrun simctl diagnose and attach the archive it creates to a feedback report?
Hi,
I created feedback 7794385 and attached the diagnose file.

Thanks!

any update on this? I am too facing similar issue

ASWebAuthenticationSession failing to access cookies only in Simulator
 
 
Q