pork for the win
auto-refresh auth if it's almost expiring (>23h)