Skip to content

ztalha6/app_essentials_auth

Repository files navigation

Flutter App Essentials Auth

Flutter App Essentials Auth is a comprehensive package that aims to accelerate app development by providing essential authentication features and utilities. It includes authentication management, API integration, exception handling, and more. With Flutter App Essentials, developers can jumpstart their projects and focus on building great user experiences.

Features

  • Auth Repository: A repository for managing user authentication, including sign-in, sign-up, password reset, and user profile management.
  • User Manager: A utility for managing user-related data and interactions, such as user preferences, profile updates, and access control.
  • Token Manager: A secure token management system for handling user authentication tokens and refreshing expired tokens.
  • API Layers: Abstracted layers for handling API requests and responses, including authentication headers and error handling.
  • Concise main.dart File: A streamlined main.dart file with boilerplate code, app initialization, and routing setup.
  • Authentication Logic: Pre-implemented authentication logic for handling login, registration, session management, and user state.
  • Exception Handler: A centralized exception handling mechanism for catching and handling errors in a unified way.
  • Snackbar Handler: A utility for displaying snackbars and toast messages, providing a consistent user feedback mechanism.

Installation

To use App Essentials Auth in your Flutter project, add the following dependency to your pubspec.yaml file:

dependencies:
  app_essentials_auth: ^1.0.0

Getting started

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage

import 'package:flutter/material.dart';
import 'package:app_essentials/app_essentials.dart';

void main() {
  AppEssentials().main();
}

Contribution

Contributions are welcome! If you find any issues or have suggestions for improvement, please create a new issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License.