nhost_auth_dart 1.0.0-dev.6 copy "nhost_auth_dart: ^1.0.0-dev.6" to clipboard
nhost_auth_dart: ^1.0.0-dev.6 copied to clipboard

Nhost Dart Auth Service SDK

Nhost Functions Dart SDK #

Pub nhost_dart tests

Nhost Functions API for Dart

Getting Started #

Get your subdomain and region from nhost dashboard

import 'package:nhost_auth_dart/nhost_auth_dart.dart';

void main() async {
  // Setup
  final auth = HasuraAuthClient(url: authUrl);

  try {
    await auth.signInEmailPassword(
      email: 'user-1@nhost.io',
      password: 'password-1',
    // Print out a few details about the current user
    final currentUser = auth.currentUser;
    if (currentUser != null) {
      print('currentUser.id: ${currentUser.id}');
      print('currentUser.displayName: ${currentUser.displayName}');
      print('currentUser.email: ${currentUser.email}');
      // And logout
      await auth.signOut();
  } catch (e) {

  // Release

Latest Release #

  nhost_functions_dart: ^4.0.0