better_auth_flutter 0.0.4 copy "better_auth_flutter: ^0.0.4" to clipboard
better_auth_flutter: ^0.0.4 copied to clipboard

A Flutter client package for integrating with Better Auth - a secure authentication platform.

better_auth_flutter #

Flutter client-side SDK for Better Auth — simplifies integration with the Better Auth backend. Supports email/password authentication, social login, session management, and secure storage.

P.S if you have any suggestions or want to contribute to this, reach out to me https://x.com/ekaksh_janweja

Features #

  • Email/password sign up, sign in, and sign out
  • Social login (Google & Apple) via ID token
  • Automatic session retrieval and validation
  • Persistent cookie-based sessions with cookie_jar
  • Easy-to-use singleton client: BetterAuth.instance.client

Getting Started #

Installation #

Add to your pubspec.yaml:

dependencies:
  better_auth_flutter: ^0.0.1

Then run:

flutter pub get

Initialization #

Before using any API, initialize the SDK (e.g., in your main.dart):

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

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  BetterAuth.init(baseUrl: Uri(scheme: "http", host: "localhost", port: 8080)); //URI of your backend
  runApp(MyApp());
}
3
likes
140
points
452
downloads

Publisher

verified publisherstormej.me

Weekly Downloads

A Flutter client package for integrating with Better Auth - a secure authentication platform.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

auto_exporter_annotation, cookie_jar, flutter, google_sign_in, http, path_provider, shared_preferences

More

Packages that depend on better_auth_flutter