How long does an authorization code work? 60 seconds, for one attempt. After that the exchange answers invalid_grant. More: Limits, Connected apps (OAuth)