adding refresh_authorization write_credentials now using the authorizations methods not the instance variables, Using the instance variables can cause problems.