Is it possible to use a Universal Link with the parameter callbackURLScheme?
https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/2990952-init
https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/2990952-init