Example Flutter App to demonstrate flutter_auth
plugins:
- Download project to your local machine
git clone https://github.com/stacktiger/flutter_auth_example.git
- Replace auth credentials with your own crdentials in
lib/main.dart
:
final twitterAuth = TwitterAuth(
clientId: '<your-client-id>',
clientSecret: '<your-client-secret>',
callbackUrl: '<your-callback-url>',
);
final githubAuth = GithubAuth(
clientId: '<your-client-id>',
clientSecret: '<your-client-secret>',
callbackUrl: '<your-callback-url>',
);
If you're unsure where to get them from, see the documentation for Twitter and GitHub for details.
- Install project dependencies
flutter pub get
- Run the app
flutter run