Refresh user token if it expires in less than a week
Update api to use separate functions for success callbacks