# licenseLoggedIn method

Future<bool> licenseLoggedIn()

Checks if the user is logged in with a license.

Returns `true` if the user is logged in, otherwise returns `false`.

## Implementation

    Future<bool> licenseLoggedIn() async {
      try {
        final login = await getValueFromSecureStorage(
          key: 'license_login',
        );
        final password = await getValueFromSecureStorage(
          key: 'license_password',
        );
        if (login == null || password == null) {
          return false;
        }
        final response = await setLogin(login, password);
        return response.isRight();
      } catch (e) {
        log('Error from init (alreadyLoggedIn): $e');
        return false;
      }
    }