Note: This package is being archived. Please use the successor package
ht-auth-client
instead.
Abstract class to be implemented by all future authentication clients. It supports:
- Passwordless Sign-in (Magic Link): Securely sign in users using a link sent to their email address.
- Google Sign-In: Integrate with Google's authentication services for a seamless login experience.
- Anonymous Authentication: Allow users to access your app without creating an account.
- User Management: Retrieve the currently authenticated user and manage their session.
- Account Deletion: Provide users with the ability to delete their accounts.
- Multiple Authentication Methods: Supports passwordless (magic link), Google Sign-In, and anonymous authentication.
- User Session Management: Provides a stream of the current user's authentication state.
- Secure Authentication: Implements best practices for secure authentication handling.
- Error Handling: Defines specific exception classes for various authentication failures (e.g.,
SendSignInLinkException
,InvalidSignInLinkException
,GoogleSignInException
). - Extensible Design: Designed as an abstract class (
HtAuthenticationClient
) to allow for custom implementations.
To get started with the ht_authentication_client
, you'll need:
-
A Dart or Flutter project.
-
Add
ht_authentication_client
as a dependency in yourpubspec.yaml
:dependencies: ht_authentication_client: git: url: https://github.com/headlines-toolkit/ht-authentication-client.git ref: main
Then run
dart pub get
.