-
Notifications
You must be signed in to change notification settings - Fork 156
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
sign_in_with_apple web: TypeError when the sign in flow completes in version 6.0.0, works in 5.0.0 #408
Comments
Interesting, that the Firebase bug predates our migration in #401 / #403. I'll see that I get my test environment set up again to gauge if / how one could reproduce this. But since we have upgraded all the minimum versions with this release, I was hoping we'd be on the same version and this worked for everyone. @IchordeDionysos @marciofrayze Are either of you running 6.0.0 successfully in production yet? |
Interesting how they switched to using Likewise the docs start out with I was definitely able to read the data with the current setup in debug, but maybe release deployments affect this as well here, which seems what firebase/flutterfire#12237 (comment) is hinting at. I'll see that I debug this shortly. |
I just checked the example web app in release mode with Then I tried with version 3.19.3 in release mode, also with success. As a last check I built the app and started a server with flutter build web
cd build/web
# Optionally:
# flutter pub global activate dhttpd
# Docs at https://docs.flutter.dev/platform-integration/web/wasm suggest passing `'--headers=Cross-Origin-Embedder-Policy=credentialless;Cross-Origin-Opener-Policy=same-origin'`, but then it would not work for me
dhttpd
# then start the SSL test server as described in the docs This also lead to success with the credential results being printed in the browser (as per our example app). |
I am trying to use your apple login package with a web application. I have not been able to use it, I even downgraded to version 5.0.0. Errore durante il login con Apple: SignInWithAppleCredentialsException(Authentication failed with UNKNOWN_SIWA_ERROR)
dependencies:
Flutter doctor • No issues found! I premise that I added this is my function in login_page.dart
|
update: by updating all dependencies to the latest version I was able to get the apple login popup to appear correctly. I ccorrectly received the code for two-factor authentication but once I clicked confirm, this error appears in the console: would you know how to suggest why? in the specidfic click on the login button with apple, the popup opens correctly and if I click the first time on continue after it authenticated me correctly, the popup does not close and nothing happens(even the error does not appear) if I then reclick a second time on continue, then the error appears in console thank you very much |
@bruco1987 I think that's usually the redirect domains not being properly configured (so the pop-up won't close / post the code to the parent). And then the error on second click happens (I think) because the login is already "used" (and thus it fails before even checking the other things). |
@bruco1987 were you able to resolve the 403 issue? I'm running into the same problem |
It seems to be a PR related to this issue here: #432 |
@lukasnevosad Could it be that you also used Sign in with Apple on the web and did not make use of the In that case, this was fixed in #432 and released with https://pub.dev/packages/sign_in_with_apple/versions/6.1.2. |
구현 내용: - apple id 로그인 구현. - 일부 기존 코드에 주석을 추가함. 추가 참고 사항 메모: - android 및 web에서 web view로 뜨는 것 까지는 작동하지만 로그인을 완료했을 때 에러가 뜨면서 더 작동하지 않는 오류가 있음. 따라서 ios에서만 apple id login이 가능하도록 함. - firebase_auth 의존성 추가시 web이 빌드되지 않는 오류가 있어 주석 처리 함.(없어도 현재 ios에서의 apple id 로그인은 잘 작동함. 현재 코드에서 해당 의존성이 필요한 부분은 없음.) 참고 자료: - firebase/flutterfire#12088 - firebase/flutterfire#9089 - https://jutole.tistory.com/64 - firebase/flutterfire#13077 - https://stackoverflow.com/questions/70035380/type-listobject-is-not-a-subtype-of-type-list-in-type-cast - firebase/flutterfire#13077 - aboutyou/dart_packages#408 - firebase/flutterfire#7216 - https://forum.ionicframework.com/t/error-with-firebase-google-authentication/239945 - firebase/firebase-ios-sdk#13084 - firebase/firebase-js-sdk#4256 - https://firebase.google.com/docs/auth/web/redirect-best-practices?hl=ko - https://woongs.tistory.com/66 - firebase/flutterfire#10909 #feature/TT-357-SigninWithAppleId #149
I have implemented the sign in flow with version
sign_in_with_apple 6.0.0
and on the Flutter web I am getting the following error after the last step in the Apple Sign dialog:Having googled a bit, similar bug reports started to pop up in Firebase auth (e.g. this), attributed to js_interop migration. Having seen this migration has been recently carried out in this plugin, I tried downgrading to 5.0.0 and there the flow works flawlessly.
Stacktrace
Dependencies
Flutter doctor
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.1 23B74 darwin-arm64, locale en-CZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.87.0)
[✓] Connected device (5 available)
! Error: Browsing on the local area network for Lukas’s Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code
-27)
[✓] Network resources
• No issues found!
The text was updated successfully, but these errors were encountered: