logout method

Future<bool> logout()

Returns Future of bool, Logs out the currently authenticated Magic user

Implementation

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