pasby 0.1.0 copy "pasby: ^0.1.0" to clipboard
pasby: ^0.1.0 copied to clipboard

Flutter SDK for integrating Pasby authentication flows in mobile apps.

pasby #

Flutter SDK for integrating Pasby authentication flows.

Install #

For pub.dev:

dependencies:
  pasby: ^0.1.0

Features #

  • Pasby service client (PasbyAuthWithServerFunctions)
  • Auth flow models (AuthFlowResponse, SecureStartData, PingFlowResponse)
  • Ready-to-use UI components (AuthenticateDifferentDevice, PasbyOnDifferentDeviceSheet, PasbyLogo)

Quick start #

import 'package:pasby/pasby.dart';

final pasbyServer = PasbyAuthWithServerFunctions(
  baseUrl: 'https://api.example.com',
  paths: Paths(
    '/pasby/auth',
    '/pasby/cancel',
    '/pasby/ping',
    '/pasby/wildcard',
  ),
  header: const {'Authorization': 'Bearer YOUR_TOKEN'},
);

Use the AuthenticateDifferentDevice widget in your login UI and handle success/failure callbacks to complete your app-specific sign-in flow.

Requirements #

  • Dart ^3.4.4
  • Flutter >=3.22.0

License #

MIT

1
likes
70
points
97
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter SDK for integrating Pasby authentication flows in mobile apps.

Homepage

Topics

#authentication #identity #flutter

Documentation

API reference

License

MIT (license)

Dependencies

blur, dio, flutter, flutter_hooks, flutter_riverpod, flutter_svg, getwidget, hooks_riverpod, logger, modal_bottom_sheet, qr_flutter, sizer

More

Packages that depend on pasby