checkUserLoggedin static method

Future<bool> checkUserLoggedin(
  1. BuildContext context
)

Implementation

static Future<bool> checkUserLoggedin(BuildContext context) async {
  User? user = FirebaseAuth.instance.currentUser;
  if (user != null)
    return true;
  else
    return false;
}