https://github.com/techinpark/threads_signin
A Flutter library to simplify the OAuth Threads SignIn 🪄
https://github.com/techinpark/threads_signin
flutter-package threads-api threads-signin
Last synced: about 1 month ago
JSON representation
A Flutter library to simplify the OAuth Threads SignIn 🪄
- Host: GitHub
- URL: https://github.com/techinpark/threads_signin
- Owner: techinpark
- License: mit
- Created: 2024-06-20T07:54:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T09:06:28.000Z (almost 2 years ago)
- Last Synced: 2026-02-16T03:48:31.220Z (about 1 month ago)
- Topics: flutter-package, threads-api, threads-signin
- Language: Dart
- Homepage:
- Size: 1.5 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# thread_signin package
[](https://pub.dev/packages/thread_signin)
Get AccessToken Using Thread API https://pub.dev/packages/thread_signin
## Getting Started
Add Package dependency
```yaml
thread_signin: ^1.0.0+2
```
or
```sh
$ flutter pub add thread_signin
```
## How to use
```dart
// create required params
var params = ThreadSignInParams(
clientId: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
clientSecret: 'XXXXXXXXXXXXXXXXXXXXXXXXXX',
redirectUrl: 'http://localhost:3000/auth/thread/callback',
scopes: 'threads_basic',
);
// Push [ThreadSigninScreen] to perform login then get the [ThreadSignInResponse]
Navigator.of(context).push(MaterialPageRoute(builder: (builder) {
return ThreadSigninScreen(
params: params,
title: '',
);
})).then((value) {
});
```
## Showcase

## Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
1. Fork the Project
2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
3. Commit your Changes (git commit -m 'Add some AmazingFeature')
4. Push to the Branch (git push origin feature/AmazingFeature)
5. Open a Pull Request
## License
Distributed under the MIT License. See LICENSE for more information.