proto_base_client 0.1.0-dev copy "proto_base_client: ^0.1.0-dev" to clipboard
proto_base_client: ^0.1.0-dev copied to clipboard

A Flutter package for ProtoBase authentication.

ProtoBase Client #

ProtoBase Client is a simple and lightweight Dart package designed to help developers integrate authentication functionalities with ease. It provides methods for signing up and signing in using email or username through the ProtoBase API.

Features #

  • Email-Based Authentication:

    • Sign up using email, password, and username.
    • Sign in using email, password, and username.
  • Username-Based Authentication:

    • Sign up using a username and password.
    • Sign in using a username and password.

Installation #

Add the following to your pubspec.yaml file:

dependencies:
  proto_base_client: ^0.1.0-dev

Run flutter pub get to install the package.

Usage #

import 'package:proto_base_client/proto_base_client.dart';

void main() async {
  final client = ProtoBaseClient();

  // Sign up using email
  final signupResponse = await client.signupWithEmail(
    'john_doe',
    'securepassword123',
    'john.doe@example.com',
  );
  print(signupResponse);

  // Sign in using email
  final signinResponse = await client.signinWithEmail(
    'john_doe',
    'securepassword123',
    'john.doe@example.com',
  );
  print(signinResponse);
}

API Endpoints #

This package interacts with the following API endpoints:

  • /auth_api/email-signup/
  • /auth_api/email-signin/
  • /auth_api/user-signup/
  • /auth_api/user-signin/

License #

This package is licensed under the MIT License. See the LICENSE file for details.


2
likes
0
points
38
downloads

Publisher

verified publisherknowledgetotal.com

Weekly Downloads

A Flutter package for ProtoBase authentication.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on proto_base_client