<?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 Re: authenticating your app (code has expired error) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105916#M3125</link>
    <description>&lt;P&gt;Thank you for your response, the code was used within seconds of receiving it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Aug 2015 01:43:36 GMT</pubDate>
    <dc:creator>Andrew G.34</dc:creator>
    <dc:date>2015-08-08T01:43:36Z</dc:date>
    <item>
      <title>authenticating your app (code has expired error)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105910#M3119</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;
I am following the steps mentioned here &lt;A href="https://www.dropbox.com/developers/core/start/java" rel="nofollow noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/core/start/java&lt;/A&gt;. but when I run the java program for second time, it says that "code has expired (within the last hour)", "error": "invalid_grant".&lt;BR /&gt;
What should I do?&lt;BR /&gt;
Especially, my question is how to set the access to the app so that the code is gotten only once, then you never need to do it again and the access stays there.&lt;BR /&gt;
I want to automatically send the user to the authorization URL and pass in a callback URL so that the user is seamlessly redirected back to my app after pressing a button? rather than directing the user to the login page?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:45:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105910#M3119</guid>
      <dc:creator>Chan N.</dc:creator>
      <dc:date>2019-05-29T09:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: authenticating your app (code has expired error)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105911#M3120</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;Sorry for the delayed response - are you still having issues?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 19:18:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105911#M3120</guid>
      <dc:creator>Ed</dc:creator>
      <dc:date>2015-03-27T19:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: authenticating your app (code has expired error)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105912#M3121</link>
      <description>&lt;P&gt;Trying to sync an app on&amp;nbsp;put it in and it says expired.windows with dropbox. I get the code sent to my phone and immediately put in in and it says expired.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 10:51:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105912#M3121</guid>
      <dc:creator>Andrew G.34</dc:creator>
      <dc:date>2015-08-07T10:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: authenticating your app (code has expired error)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105913#M3122</link>
      <description>&lt;P&gt;&lt;EM&gt;Moved to API Development.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2015 14:55:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105913#M3122</guid>
      <dc:creator>Robert S.</dc:creator>
      <dc:date>2015-08-07T14:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: authenticating your app (code has expired error)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105914#M3123</link>
      <description>&lt;P&gt;Chan, You're getting this error&amp;nbsp;because&amp;nbsp;each "authorization code" that you exchange for the access token is short-lived (just a few minutes)&amp;nbsp;and can only be used once, so you&amp;nbsp;can only use each one once, soon after retrieving it.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;After that, you can just store and re-use the resulting access token that your app receives from the app authorization flow for each&amp;nbsp;account. These access tokens don't expire automatically (though they can be manually revoked) so your app can re-use them without manual user intervention.&lt;/P&gt;

&lt;P&gt;And yes, you can set this up to work without the manual/copy paste. The tutorial uses the flow without a redirect URI, but instead, for web apps, you'll want to use &lt;CODE&gt;DbxWebAuth&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.7.x/com/dropbox/core/DbxWebAuth.html" rel="nofollow noreferrer"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v1.7.x/com/dropbox/core/DbxWebAuth.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2015 00:52:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105914#M3123</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-08-08T00:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: authenticating your app (code has expired error)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105915#M3124</link>
      <description>&lt;P&gt;Andrew, your post seems unrelated to this thread, so you'll likely be better served in the Bugs &amp;amp; Troubleshooting section:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropboxforum.com/hc/en-us/community/topics/200203389-Bugs-Troubleshooting" rel="nofollow noreferrer"&gt;https://www.dropboxforum.com/hc/en-us/community/topics/200203389-Bugs-Troubleshooting&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2015 00:53:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105915#M3124</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-08-08T00:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: authenticating your app (code has expired error)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105916#M3125</link>
      <description>&lt;P&gt;Thank you for your response, the code was used within seconds of receiving it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2015 01:43:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105916#M3125</guid>
      <dc:creator>Andrew G.34</dc:creator>
      <dc:date>2015-08-08T01:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: authenticating your app (code has expired error)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105917#M3126</link>
      <description>&lt;P&gt;In your first post you mentioned the error occurred on the second run. Are you only getting the error the second time, or do you also get the error on the first attempted use of a new authorization code? If it's the first use, can you post your code and output?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2015 01:46:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/authenticating-your-app-code-has-expired-error/m-p/105917#M3126</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-08-08T01:46:07Z</dc:date>
    </item>
  </channel>
</rss>

