Update API Token using function called from handle_event

You need to keep in mind that:

  • All values are immutable
  • 2 processes share nothing, such as the LV process and the get_token_task

So you need to pass the pid of the LV process into the task, then send the token back as part of a message, then have a handle_info() at the LV process to update the socket.