execute method

  1. @override
Future<String?> execute(
  1. BuildContext context
)
override

Implementation

@override
Future<String?> execute(BuildContext context) {
  final isAuthenticated = switch (vyuh.auth.currentUser.loginMethod) {
    LoginMethod.unknown || LoginMethod.anonymous => false,
    _ => true,
  };

  return Future.value(isAuthenticated.toString());
}