Cleaning up the code. Going to implement a hack to make the auth execution pause.
Setup ooma api auth at the beginning of the session. Stores the auth token and exp_time in device listener. Checks to make sure they are present/not expired. If they are then it re-initiates authorization.  After tokens are retrieved triggers an event to continue executing nest side.
Setup ooma api auth at the beginning of the session. Stores the auth token and exp_time in device listener. Checks to make sure they are present/not expired. If they are then it re-initiates authorization.  After tokens are retrieved triggers an event to continue executing nest side.
Basic functionality is all here. Has basic commenting. Could maybe use a little bit more tightening of code.