mirrored_repositories/Flutter_Projects/Firestore Products Manager/lib
import 'dart:developer';

import 'package:firebase_auth/firebase_auth.dart';

class AuthService {
  final FirebaseAuth _auth = FirebaseAuth.instance;

  // Sign in anonymously sans email or password
  Future<User?> signInAnon() async {
    try {
      UserCredential userCredential = await _auth.signInAnonymously();
      return userCredential.user;
    } catch (e) {
      log("singInAnon: " + e.toString());
      return null;
    }
  }
}
