title: Bitbucket API Access token expiry
body: <p>I am making an app which integrates with bitbucket using oauth.
  My question is how do I get the token details such as the <em>token expiry date</em> or the <em>token permissions</em>.<br>
  Is there any endpoint on the bitbucket API which will give me these details</p>
  
  <p><strong>SOLVED:</strong> Bitbucket Tokens have an expiry time of 1 hour after which we need to use the provided refresh token to refresh our access token.</p>