better_auth_client 0.0.1 copy "better_auth_client: ^0.0.1" to clipboard
better_auth_client: ^0.0.1 copied to clipboard

A client package for Better Auth

A client package for Better Auth.

Usage #


class InMemoryTokenStore extends TokenStore {
  String? _token;

  @override
  Future<String> getToken() {
    return Future.value(_token ?? "");
  }

  @override
  Future<void> saveToken(String? token) {
    _token = token;
    return Future.value();
  }
}

final client = BetterAuthClient(baseUrl: "http://localhost:3000/api/auth", tokenStore: InMemoryTokenStore());
final response = await client.signIn.email("[email protected]","Password","Test User");
6
likes
0
points
32
downloads

Publisher

verified publisherprocrastinator.fyi

Weekly Downloads

A client package for Better Auth

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, json_annotation

More

Packages that depend on better_auth_client