Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue prompting for authentication on OSX with Chrome as default browser #136

Open
Jack64 opened this issue Sep 6, 2022 · 1 comment
Open

Comments

@Jack64
Copy link

Jack64 commented Sep 6, 2022

Issue Description

When using flutter_web_auth v0.4.1 on Darwin OSX (12.5.1) targets that have the default browser set to Chrome (Version 105.0.5195.102 (Official Build) (x86_64)), the authentication prompt opens and closes immediately afterwards, causing a PlatformException. If the default browser is set to Safari, the authentication flows work as expected.

Steps to reproduce

  1. Set Chrome as default browser in OSX
  2. Start the authentication flow with the default browser (Chrome), using flutter_web_auth v0.4.1
  3. See the chrome window open and immediately close
  4. Stack trace:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(EUNKNOWN, The operation couldn’t be completed. (com.apple.AuthenticationServices.WebAuthenticationSession error 3.), null, null)
#0      StandardMethodCodec.decodeEnvelope
package:flutter//services/message_codecs.dart:653
#1      MethodChannel._invokeMethod
package:flutter//services/platform_channel.dart:296
<asynchronous suspension>
#2      FlutterWebAuth.authenticate
package:flutter_web_auth/flutter_web_auth.dart:35
<asynchronous suspension>
@LinusU
Copy link
Owner

LinusU commented Nov 1, 2022

This seems indeed to be a problem in the underlying macOS implementation, so unfortunately there isn't really anything actionable that I can do right now.

More info:

I've added a link to this issue in the troubleshooting guide!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants