title: Renew Google OAuth Authorization Code
body: <p>I'm trying to set up a OAuth 2 system between my app and Google, in the process I received the authorization code, and I successfully exchanged it for access and id tokens. The problem is that every time after that I've tried running my code it's given me this error : </p>
  
  <p>{error: "invalid_grant", error_description: "Code was already redeemed."}</p>
  
  <p>Im using angular 2 on ionic 2, with cordova.</p>
  
  <p><a href="https://i.stack.imgur.com/CBeig.png" rel="nofollow noreferrer">Code used to exchange code for tokens</a></p>
  
  <p><a href="https://i.stack.imgur.com/j9SrY.png" rel="nofollow noreferrer">Code used to get authorization code</a></p>