Environment
-
App: Flutter desktop (macOS primary; Windows/Linux also used)
-
SDK/Packages:
auth0_flutter
-
Platforms: macOS, Windows/Linux unaffected
-
Browser state: Chrome open, Safari closed (Chrome default)
Summary
Login via auth0_flutter
works in all other cases, but fails only when Chrome is freshly open and Safari is closed on macOS.
Errors observed
- First attempt (
useHTTPS: true
) throws:
WebAuthenticationException (OTHER: An unexpected error occurred.
CAUSE: Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=3
"Scheme '(null)' is not valid as per RFC 3986."
UserInfo={NSDebugDescription=Scheme '(null)' is not valid as per RFC 3986.})
- Fallback attempt (
useHTTPS: false
, custom scheme) immediately completes as canceled (SDK surfaces “User cancelled session.”) after Chrome’s “open this app?” prompt flashes.