Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supabase/gotrue-dart
A dart client library for GoTrue.
https://github.com/supabase/gotrue-dart
Last synced: about 1 month ago
JSON representation
A dart client library for GoTrue.
- Host: GitHub
- URL: https://github.com/supabase/gotrue-dart
- Owner: supabase
- License: mit
- Archived: true
- Created: 2021-01-18T08:41:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-13T01:25:53.000Z (over 1 year ago)
- Last Synced: 2024-05-01T16:25:40.034Z (5 months ago)
- Language: Dart
- Homepage:
- Size: 400 KB
- Stars: 47
- Watchers: 10
- Forks: 36
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `gotrue-dart`
> **Warning**
> This repository has been moved to the [supabase-flutter repo](https://github.com/supabase/supabase-flutter/tree/main/packages/gotrue).Dart client for the [GoTrue](https://github.com/netlify/gotrue) API.
## Using
The usage should be the same as gotrue-js except:
Oauth2:
- `signIn` with oauth2 provider only return provider url. Users have to launch that url to continue the auth flow. I recommend to use [url_launcher](https://pub.dev/packages/url_launcher) package.
- After receiving callback uri from oauth2 provider, use `getSessionFromUrl` to parse session data.Persist/restore session:
- No persist storage provided. Users can easily store session as json with any Flutter storage library.
- Expose `recoverSession` method. It's used to recover session from a saved json string.## Contributing
- Fork the repo on [GitHub](https://github.com/supabase/gotrue-dart)
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes and merge## License
This repo is licensed under MIT.
## Credits
- https://github.com/supabase/gotrue-js - ported from supabase/gotrue-js fork
- https://github.com/netlify/gotrue-js - original library