Comments (8)
I think think the dependency should be replaced with https://pub.dev/packages/flutter_web_auth_2 which is an updated fork of the apparently abandoned original flutter_web_auth. The current dependency's last update was in Feb, and given there are a number of PRs going unanswered I think we can call it what it is - abandoned. The link above is the continuation of the excellent package but with relevant fixes.
I for one have an issue wanting to release production grade code but don't want to link to a dependency override. I can't guarantee that fork will be around forever as it's not a published version.
I'm also sick of seeing the stupid exceptions in my console. Can we please update? If not, I'll have to look at forking appwrite/sdk_for_flutter or the generator so I can put something sound into production.
From the author:
If you used flutter_web_auth correctly (and without extra hackage) before, it should be sufficient to replace the following strings everywhere (yes, also in AndroidManifest.xml for example):
FlutterWebAuth -> FlutterWebAuth2
flutter_web_auth -> flutter_web_auth_2
from sdk-for-flutter.
These warnings are from the flutter_web_auth
package . There is also and issue #117 in the flutter_web_auth repo and a PR is also pending. All we can hope is to be that it gets merged soon
from sdk-for-flutter.
@Appwrite-Guru You can add this to your pubspec to make those warnings go away:
dependency_overrides:
flutter_web_auth:
git:
url: https://github.com/noga-dev/flutter_web_auth.git
ref: ee3c26a530a625c3cab7e0c45cc30316c8b4b64c
from sdk-for-flutter.
For now these are just warnings and doesn't affect the functionality.
from sdk-for-flutter.
I forked the sdk-for-flutter
at https://github.com/startcommerce/appwrite_flutter to test swapping in the https://pub.dev/packages/flutter_web_auth_2 dependency.
I had to update device_info_plus
to ^4.1.2
and package_info_plus
to ^1.4.3+1
at the same time.
I've tested the forked version with GitHub OAuth in a Flutter web app and all is working as expected with clean console output. I have access to the GitHub access token with the scopes requested in the session and I'm not seeing any issues at all. Upgrading has also permitted me to use the latest file_picker
version (5.0.1) which means I'm no longer stuck in old FFI land too.
I have not tested Android, iOS, Windows, Mac or Linux, but I am happy to.
Before you say it: I know I can't submit this as a PR because this is the read-only repo, but I am happy to fork the SDK generator and make the required changes and submit a PR there if you're interested. Just need to know if you're happy for me to proceed, or is someone else (@lohanidamodar) already tackling this?
from sdk-for-flutter.
@jocubeit I think you can go ahead and implement the new dependency, this will also help us ensure all tests are running properly. @lohanidamodar has reached out to the maintainer of flutter_web_auth_2
to see if our team can help with maintenance of the new package.
from sdk-for-flutter.
Alright great! I'll go ahead and create a PR.
Thanks for the swift response.
from sdk-for-flutter.
Thank you everyone for all the help, version 7.0 with the fix has been released 💙 More info and credits to you all in our latest blog post: https://dev.to/appwrite/announcing-new-versions-for-appwrites-flutter-and-dart-sdks-4l5j
from sdk-for-flutter.
Related Issues (20)
- 📚 Documentation: library code does not contain clear and or concise documentation HOT 11
- 📚 Documentation: The documentation/method Account.deleteSession() and Account.deleteSessions() are wrong HOT 3
- 🐛 Bug Report: Subscribing Multiple Times with a Single Realtime Instance Results in Null Subscription HOT 14
- redirect_uri_mismatch when use Google oAuth HOT 1
- 🐛 Bug Report: '_Map<String, dynamic>' is not a subtype of type 'List<dynamic>' with permissions in a document HOT 3
- 🐛 Bug Report: Teams API - create/list methods throwing type conversion errors because of null value HOT 1
- 🐛 Bug Report: Error when uploading large files (over 5 MB) with Appwrite SDK for Flutter (SDK Version: 9.0.1, Server Version: 1.3.3) HOT 1
- Help me fixing this HOT 2
- 🐛 Bug Report: Unable to assign roles HOT 1
- [ISSUE] Reliable offline storage HOT 2
- 🐛 Bug Report: Flutter App fails to build after adding aappwrite^10.0.0 as dependency HOT 3
- 🐛 Bug Report: Unhandled Exception: type 'Null' is not a subtype of type 'List<dynamic>' HOT 8
- 📚 Documentation: Update InputFile documentation about what to use for Flutter Web HOT 1
- 🐛 Bug Report: Missing null check in Document.fromMap factory HOT 1
- 🐛 Bug Report: Server Error code 500 when create new document HOT 1
- 🚀 Feature: Return cookie with the fuction createOAuth2Session HOT 1
- 🐛 Bug Report: Upgrade http library to latest stable HOT 8
- 🐛 Bug Report: [Android] Switching to any authenticator app while creating a Google OAuth Session breaks the login flow HOT 3
- 🐛 Bug Report: [MACOS] can't compile my project on MacOs HOT 1
- 🐛 Bug Report: Add image/webp accept header to file preview request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk-for-flutter.