isAuthenticated property

bool get isAuthenticated

Checks if the app is currently authenticated

Returns true if the user is authenticated, false otherwise.

Example usage:

if (context.isAuthenticated) {
  // User is authenticated, show secure content
  return SecureContent();
} else {
  // User needs to authenticate
  return AuthenticationPrompt();
}

Implementation

bool get isAuthenticated {
  final guardoState = _findGuardoStateNotifier();
  return guardoState?.isAuthenticated == true;
}