authorization code Expire time

  • 1
  • Question
  • Updated 1 year ago
  • Answered
I am getting code, state but there is no expires_in time 
Response : 
codeU0pDMTFQMDFQQVM...... state:RINGCENTRAL
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 1 year ago

  • 1
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,914 Points 2k 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

  • 8,162 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.