nhost_sdk 4.0.0-dev.1 copy "nhost_sdk: ^4.0.0-dev.1" to clipboard
nhost_sdk: ^4.0.0-dev.1 copied to clipboard

Nhost authentication and file storage/retrieval APIs for the Dart language.

Nhost Dart SDK #

Pub nhost_sdk tests

Nhost authentication and file storage API clients for Dart and Flutter.

Includes support for:

  • User sign in and registration, including multi-factor authentication
  • Email and password changes, either directly or via email confirmation
  • Storage and retrieval of arbitrary files
  • Scaling and transformation of stored files
  • GraphQL authentication, via nhost_graphql_adapter

Sample #

import 'package:nhost_sdk/nhost_sdk.dart';

void main() async {
  final nhost = NhostClient(baseUrl: 'https://backend-5e69d1d7.nhost.app');

  // User registration
  await nhost.auth.register(email: 'new-user@gmail.com', password: 'xxxxx');

  // Upload a file
  final currentUser = nhost.auth.currentUser;
  await nhost.storage.uploadBytes(
    filePath: '/users/${currentUser.id}/image.jpg',
    bytes: [/* ... */],
    contentType: 'image/jpeg',
  ),

  // Log out
  await nhost.auth.logout();
}

Getting Started #

Latest Release #

dependencies:
  nhost_sdk: ^3.0.0

🔥 More Dart & Flutter packages from Nhost #

23
likes
0
pub points
71%
popularity

Publisher

verified publishernhost.io

Nhost authentication and file storage/retrieval APIs for the Dart language.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http, http_parser, jwt_decoder, logging, meta, path

More

Packages that depend on nhost_sdk