<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic What is the best way to check access token is expired in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-is-the-best-way-to-check-access-token-is-expired/m-p/591081#M27499</link>
    <description>&lt;P&gt;I need to know the most appropriate way to check my access token is expired or not? Can anyone suggest with an example&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 10:29:06 GMT</pubDate>
    <dc:creator>SuryaMopuru</dc:creator>
    <dc:date>2022-04-18T10:29:06Z</dc:date>
    <item>
      <title>What is the best way to check access token is expired</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-is-the-best-way-to-check-access-token-is-expired/m-p/591081#M27499</link>
      <description>&lt;P&gt;I need to know the most appropriate way to check my access token is expired or not? Can anyone suggest with an example&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 10:29:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-is-the-best-way-to-check-access-token-is-expired/m-p/591081#M27499</guid>
      <dc:creator>SuryaMopuru</dc:creator>
      <dc:date>2022-04-18T10:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to check access token is expired</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-is-the-best-way-to-check-access-token-is-expired/m-p/591395#M27501</link>
      <description>&lt;P&gt;When you retrieve a short-lived access token via &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_self"&gt;/oauth2/token&lt;/A&gt;, the response includes the expiration information in the 'expires_in' field. You can store and refer to that information to check if the short-lived access token would be expired at any point in time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To actively check if any particular access token is still valid though, you would need to perform an API call. For example, for user-linked access tokens, calling &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#check-user" target="_self"&gt;/2/check/user&lt;/A&gt; or&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account" target="_self"&gt;/2/users/get_current_account&lt;/A&gt; would be good options, as those don't have any side effects. (Likewise, for team-linked access tokens, you could use &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team-get_info" target="_self"&gt;/2/team/get_info&lt;/A&gt;.)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 14:23:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/What-is-the-best-way-to-check-access-token-is-expired/m-p/591395#M27501</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-04-18T14:23:47Z</dc:date>
    </item>
  </channel>
</rss>

