authorization code Expire time

  • 1
  • Question
  • Updated 2 years ago
  • Answered
I am getting code, state but there is no expires_in time 
Response : 
Can u help me how to get expires_in and what is the lifetime of authorization code
Photo of Hambrise Alan

Hambrise Alan

  • 140 Points 100 badge 2x thumb
  • anxious

Posted 2 years ago

  • 1
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 3,024 Points 3k badge 2x thumb
Authorization code TTL is now 5 minutes by default. OAuth spec (RFC 6749) does not define any attribute to pass expires_in for authorization code. We will consider implementing it as an extension.
Photo of Tyler Long

Tyler Long, Official Rep

  • 9,828 Points 5k badge 2x thumb
I think you are talking about authorization code flow. As far as I can tell, authorization code expires very quickly. You should exchange it for access_token as soon as you can.