AndriousSolutions / auth

Other
47 stars 14 forks source link

Are the examples up to date? #31

Open leonceaklin opened 1 year ago

leonceaklin commented 1 year ago

I can't get this lib to work using an the example or the screenshots on pub.dev. I get the very basic error: Type 'Auth' not found even though I imported the library like this: import 'package:auth/auth.dart' if (dart.library.html) 'package:auth/auth_web.dart'; Are the examples up to date?

Andrious commented 1 year ago

Hello there! It should be up-to-date. One moment, I'll take a look. In the meantime, please perform a 'flutter clean' and 'invalidate cache' on your IDE. Being just a fundamental error message, possibly the issue is the local build/cache files. Thanks for letting me know.

Andrious commented 1 year ago

I couldn't reproduce the error you were encountering. However, I did make some tweaks of sorts to the code so to 'up to date.' The latest version (v. 8.2.0+02) is now available for download. The example allows you to now try a few methods.

However, both the Facebook and Twitter methods require the developer to create a 'Facebook app' and 'Twitter app' for authentication. I'm not prepared to do that simply for a demo app. There's info there for you to look up how yourself.

The remaining options will let you 'log in'.

Greg