Got very basic token timeouts working (you just have to log in again, I'll make proper token refreshing soon)