hyper-ts middleware for OAuth 2.