Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

flutter-news-app-full-source-code/ht-authentication-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Features

  • 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.

Getting started

To get started with the ht_authentication_client, you'll need:

  1. A Dart or Flutter project.

  2. Add ht_authentication_client as a dependency in your pubspec.yaml:

    dependencies:
      ht_authentication_client:
        git:
          url: https://github.com/headlines-toolkit/ht-authentication-client.git
          ref: main

    Then run dart pub get.

About

Abstract class to be implemented by all future authentication clients.

Resources

License

Stars

Watchers

Forks

Languages