I have been implementing the Google web server OAuth flow, but when I attempted to exchange the authorization code with access token, it always complains \"invalid_code\".
The life span of authorization code is only 10 mins,and can only be used one time. So do these checks: