isAuthenticated method

bool isAuthenticated()

Check if a user is currently authenticated

Example:

if (db.auth.isAuthenticated()) {
  print('User is logged in');
}

Implementation

bool isAuthenticated() => _token != null && _token!.isNotEmpty;