safariProvider doesnt work as expected in IOS 17

I am expecting strange behaviour on ios17.
We are switching from using useEphemeralSession() to .provider(WebAuthentication.safariProvider(style: .formSheet))
. Obviously everything is set up accrding to the description here Auth0.swift/FAQ.md at master · auth0/Auth0.swift · GitHub
And I am experiencing strange behaviour. The call back works in IOS 16. But it doesnt work in IOS 17. SFSafariViewController just shows a white screen stating Not Found and call back to the app doesnt happen.
As I said same code in IOS 16 works as expected and AppDelegate gets the call back.

Not sure where to go from here.