isLoggedIn method

Future<bool> isLoggedIn()

Returns Future of bool, which denotes if user has already logged in, or not.

Implementation

Future<bool> isLoggedIn() async {
  return sendToProvider(method: UserMethod.magic_auth_is_logged_in)
      .then((jsMsg) {
    var relayerResponse = RelayerResponse<bool>.fromJson(
        json.decode(jsMsg.message), (json) => json as bool);
    return relayerResponse.response.result;
  });
}