authsome 1.5.0 copy "authsome: ^1.5.0" to clipboard
authsome: ^1.5.0 copied to clipboard

Dart client SDK for the Authsome authentication platform. Provides a typed HTTP client and request/response models for sign-in, sessions, MFA, magic links, password reset, and account management.

authsome #

Dart client SDK for the Authsome authentication platform.

This package provides a typed HTTP client and request/response models for interacting with an Authsome server from Dart and Flutter applications. It is the underlying transport used by the authsome_core, authsome_flutter, and authsome_flutter_ui packages.

Installation #

Add the package to your pubspec.yaml:

dependencies:
  authsome: ^1.5.0

Then run:

dart pub get

Usage #

import 'package:authsome/authsome.dart';

void main() async {
  final client = AuthsomeClient(
    baseUrl: 'https://auth.example.com',
    publishableKey: 'pk_live_...',
  );

  final session = await client.signIn(
    SignInRequest(identifier: 'user@example.com', password: 'hunter2'),
  );

  print(session.user?.id);
}

See the Authsome documentation for the full set of endpoints, flows, and configuration options.

License #

MIT — see LICENSE.

0
likes
120
points
45
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart client SDK for the Authsome authentication platform. Provides a typed HTTP client and request/response models for sign-in, sessions, MFA, magic links, password reset, and account management.

License

MIT (license)

Dependencies

http

More

Packages that depend on authsome