moving code and tokens extraction logic to the OAuthManager